Questions

Q:

Point out the error, if any, in the following program.

#include "stdarg.h"

main()

{

     display ( 4, 12.5, 13.5, 14.5, 44.3);

}

display(int num, ...)

{

       float c; int j;

        va_list ptr;

        va_start (ptr, num);

        for ( j = 1; j <= num; j++)

        {

            c = va_arg ( ptr, float );

            printf ("\n%f", c);

         }

}

Answer

While extracting a float argument using va_arg we should have useed 


c = va_arg (ptr, double)

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 5554
Q:

Clouds usually form when

A) air temperature reaches the dew point B) evapouration has warmed the surrounding air
C) relative humidity is 0% D) condensation nuclei have been removed from the air
 
Answer & Explanation Answer: A) air temperature reaches the dew point

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

8 5554
Q:

Qualm is the opposite of

A) confidence B) misgiving
C) doubt D) worry
 
Answer & Explanation Answer: A) confidence

Explanation:

Qualm means feeling confused, uneasiness, very doubtful and being in worry.

 

Hence, among the given options, Qualm is the opposite of Confidence.

Report Error

View Answer Report Error Discuss

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

1 5554
Q:

The Sea that separates Greece and Italy is 

A) Mediterranean B) The Tyrrhenian
C) The Adriatic D) The Aegean
 
Answer & Explanation Answer: C) The Adriatic

Explanation:

The Mediterranean Sea seperates the continents of Europe and Africa. Tyrrhenian Sea is found between Italy and Sardinia and Aegean Sea lies between Greece and Turkey. 

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

5 5553
Q:

Which is fastest swimming fish

Answer

sailfish

Report Error

View answer Workspace Report Error Discuss

34 5550
Q:

Which one of the following was not authorised by Annie Besant?

A) The future of Indian politics B) How India fought for freedom
C) The case for India D) India Old and New
 
Answer & Explanation Answer: D) India Old and New

Explanation:

Except option D all the other were posted by Annie Besent

Report Error

View Answer Report Error Discuss

Filed Under: Indian History

3 5550
Q:

Who discovered the Indus Valley Civilization

A) Sir Leonard wooley B) V.S.Agarwal
C) Dayaram Sahni D) A.L.Basham
 
Answer & Explanation Answer: C) Dayaram Sahni

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

4 5547
Q:

Commissioners for the Affairs of India were known as 

A) Court of directors B) Board of Directors
C) Board of Control D) Board of Merchants
 
Answer & Explanation Answer: C) Board of Control

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

6 5547