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 3726
Q:

What is the Lithosphere made of?

A) Soil B) Rocks
C) Dirt D) Water
 
Answer & Explanation Answer: B) Rocks

Explanation:

Lithoshpere are composed of rocks in the crust and upper mantle that behave as brittle solids. The lithosphere is Earth's outermost layer.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

7 3726
Q:

"IPCC" stands for

A) Indian Panel on Code Change B) Indian Penal Country Code
C) Intergovernmental Panel on Climate Change D) Indian Policy on Climate Control
 
Answer & Explanation Answer: C) Intergovernmental Panel on Climate Change

Explanation:

IPCC stands for the Intergovernmental Panel on Climate Change. It was established in 1988 by the World Meteorological Organization and the United Nations Environment Programme.

 

 

      • IPCC, with respect to Chartered Accountancy, stands for Integrated Professional Competence Course. This is the second level of the CA course.




 

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: CAT , Bank Exams , AIEEE
Job Role: Bank PO , Analyst

4 3726
Q:

Bhatnagar Prize is given in the field of

A) Peace B) Music and dance
C) Science and Technology D) Fine arts
 
Answer & Explanation Answer: C) Science and Technology

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

2 3725
Q:

Where and when the first session of Indian National Congress was held ?

A) Delhi, 1890 B) Mumbai, 1885
C) Madras, 1887 D) Kolkata, 1889
 
Answer & Explanation Answer: B) Mumbai, 1885

Explanation:

The first session of Indian National Congress was held from 28–31 December 1885, in Mumbai and was attended by 72 delegates. Womesh Chandra Bonnerjee was the first president of the Indian National Congress (INC), a voice of Indian opinion to the British government.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

12 3722
Q:

Who among the following is a winner of the Indira Gandhi Award for National Integration

A) M.G.K.Menon B) V.K.Gokak
C) Raghupati Sahai 'Firaq' D) M.F.Hussain
 
Answer & Explanation Answer: D) M.F.Hussain

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

1 3722
Q:

Who is Dr. Kasturirangan

A) Chairman, ISRO B) Finance Secretary,Govt. of TamilNadu
C) Vice Chancellor,Anna University D) Director,DRDO
 
Answer & Explanation Answer: A) Chairman, ISRO

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

3 3722
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 3722