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

Which of the following layers of the earth is believed to have the heavist mineral materials of highest density

A) Central core B) Crust
C) Mantle D) Both (B) and (C)
 
Answer & Explanation Answer: A) Central core

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

0 3915
Q:

Malleability and Ductility of metals can be accounted due to

A) the crystalline structure in metal B) the interaction of electrons with metal ions in the lattice
C) the presence of electrostatic force D) the capacity of layers of metal ions to slide over the other
 
Answer & Explanation Answer: D) the capacity of layers of metal ions to slide over the other

Explanation:
Report Error

View Answer Report Error Discuss

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

4 3915
Q:

Give me a word that means the opposite of dull?

A) Sharp B) Bright
C) Exciting D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Dull means not sharp, not shining, not bright, ...

 

Hence, the given words are all that means the opposite of dull.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , CAT , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

4 3915
Q:

Answer the following puzzle

Answer

7:05


Explanation: As you move from left to right, the time shown on each watch decreases by 12 minutes, then 24, 36 and 48.

Report Error

View answer Workspace Report Error Discuss

Subject: Clock puzzles

14 3914
Q:

"Tigris River" flows through which of the following countries ?

A) Iran B) Italy
C) Iraq D) Egypt
 
Answer & Explanation Answer: A) Iran

Explanation:
Report Error

View Answer Report Error Discuss

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

16 3914
Q:

The Indian Football team made its first appearance at Olympicsin

A) 1936 B) 1948
C) 1952 D) 1956
 
Answer & Explanation Answer: B) 1948

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

3 3913
Q:

National Institute of Aeronautical Engineering is located at

A) Lucknow B) Dehradun
C) Kanpur D) Bangalore
 
Answer & Explanation Answer: B) Dehradun

Explanation:

National_Institute_of_Aeronautical_Engineering_is_located_at1552113412.jpg image

National Institute of Aeronautical Engineering is located at Dehradun, Uttaranchal, India.

Report Error

View Answer Report Error Discuss

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

2 3912