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

Which company's name in Italian means 'to roll'?

A) Vauxhall B) Honda
C) Volvo D) Michelin
 
Answer & Explanation Answer: C) Volvo

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

12 3806
Q:

What base is found in RNA but not in DNA?

A) Uracil B) Cytosine
C) Adenine D) Guanine
 
Answer & Explanation Answer: A) Uracil

Explanation:

Uracil is not found in DNA but found in RNA.

DNA_-_RNA_bases1532086121.jpg image

Report Error

View Answer Report Error Discuss

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

1 3806
Q:

As per the recommendations of the 12th Finance Commission, what will be the Share of the State Govts in total shareable proceeds of Central taxes?

A) 15% B) 20.5%
C) 22% D) 30.5%
 
Answer & Explanation Answer: D) 30.5%

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank PO

1 3804
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 3804
Q:

According to Forbes, Who has become Asia’s richest person in the year 2017?

A) Jeff Bezos B) Hui Ka Yan
C) Mukesh Ambani D) Bill Gates
 
Answer & Explanation Answer: C) Mukesh Ambani

Explanation:

Reliance Industries Chairman Mukesh Ambani overtook China’s Hui Ka Yan to become Asia’s richest person with a total wealth of $42.1 billion. According to Forbes’ real time billionaire’s list, Ambani's personal wealth rose by $466 million in 2017.

Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

9 3804
Q:

What is the capital of Peru?

A) Warsaw B) Lima
C) Dakar D) Victoria
 
Answer & Explanation Answer: B) Lima

Explanation:

Lima is the capital of Peru

Report Error

View Answer Report Error Discuss

Filed Under: Country Capitals

10 3803
Q:

' Crime and Punishment ' was written by

A) Alexander Solzhenitysn B) Lewis Carroll
C) Fyodor Dostoevsky D) Valdimir Nabakov
 
Answer & Explanation Answer: C) Fyodor Dostoevsky

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

2 3802