Questions

Q:

How would you check whether the contents of two structure variables are same or not?

Answer

struct emp


{


     char n[20];


      int age;


};


main()


{


    struct emp e1 = {"Dravid", 23};


   struct emp e2;


   scanf ("%s %d",e2.n, & e2.age);


   if( structcmp (e1,e2) ==0)


        printf ("The structures are equal");


   else


         printf ("The structures are unequal");


}


structcmp ( struct emp x, struct emp y)


{


     if (strcmp (x.n,y.n) ==0)


           if (x.age == y.age)


            return (0);


            return (1);


}


In short, if you nee to compare two structures, you'll have to write your own function to do so which carries out the comparison field by field.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3736
Q:

Who invented Electrocardiograph(EKG)?

Answer

The EKG was invented by Willem Einthoven in 1903 and is used to monitor and analyze past and present heart activity in an individual.

Report Error

View answer Workspace Report Error Discuss

Subject: Inventions

5 3736
Q:

The headquarters of the International court of Justice is situated at _____ ?

A) Sweden B) Geneva
C) London D) Hague
 
Answer & Explanation Answer: D) Hague

Explanation:

International court of Justice (ICJ) is the main judicial organ or branch of the United Nations, sometimes people call it the World Court. ICJ was established in the year 1945 and has its headquarters at The Hague, Netherlands.

Report Error

View Answer Report Error Discuss

Filed Under: World Organisations
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

8 3735
Q:

' In CUstody ' , an english novels, is written by which one of the following

A) Vikram Seth B) Shoba De
C) Anita Desai D) VS.Naipaul
 
Answer & Explanation Answer: C) Anita Desai

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

4 3734
Q:

Ozone hole refers to

A) Decrease in the thickness of ozone layer in Stratosphere B) Increase in thickness of ozone layer
C) Decrease in the ozone layer in Troposphere D) Hole in the ozone layer
 
Answer & Explanation Answer: A) Decrease in the thickness of ozone layer in Stratosphere

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Bank Clerk , Bank PO

8 3734
Q:

Fuse Wire is Made of?

A) an alloy of Tin and Lead B) Nickel
C) Copper D) an alloy of Nickel and Lead
 
Answer & Explanation Answer: A) an alloy of Tin and Lead

Explanation:

Fuse Wire is Made of an alloy of Tin and Lead.

 

If too high a current flows, the element rises to a higher temperature and either directly melts, or else melts a soldered joint within the fuse, opening the circuit. Thefuse element is made of an alloy of Tin and Lead to provide stable and predictable characteristics.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank PO , Database Administration , IT Trainer

9 3733
Q:

The Busiest Metro Station in the world _________

Answer

Shinjuku Station in Tokyo, Japan, has an average of 3.64 million passengers pass through it each day. It has more than 200 exits.

Report Error

View answer Workspace Report Error Discuss

1 3732
Q:

Who is the Chairman of the Rajya Sabha?

A) The president B) The Vice-President
C) The Prime Minister D) The Speaker
 
Answer & Explanation Answer: B) The Vice-President

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

1 3732