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

An atom bomb based upon the principal of ________

A) Nuclear fission B) Nuclear fussion
C) Controlled chain reaction D) None of these
 
Answer & Explanation Answer: A) Nuclear fission

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics

7 5098
Q:

What is the capital of Telangana?

A) Warangal B) Hyderabad
C) Nizamabad D) Adilabad
 
Answer & Explanation Answer: B) Hyderabad

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

13 5098
Q:

The cult of krishna is primarly exhibited through the 

A) Ancient art B) Rajasthani school of art
C) Mughal school of art D) Bengal school of art
 
Answer & Explanation Answer: B) Rajasthani school of art

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

3 5093
Q:

Bhutan’s national language is known as ___________.

 

A) Dzongkha B) Khengkha
C) Tshanglakha D) Lhotshamkha
 
Answer & Explanation Answer: A) Dzongkha

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards
Exam Prep: Bank Exams

1 5090
Q:

Which two concepts explain how the body moves?

A) Force & Leverage B) Balance & Leverage
C) Agility and Force D) Balance & Force
 
Answer & Explanation Answer: D) Balance & Force

Explanation:

The two concepts that explain how the body moves are force and balance.

Report Error

View Answer Report Error Discuss

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

4 5090
Q:

Which species is a conjugate acid of OH- ?

 

A) H+ B) O2- 
C) OH D) H2O
 
Answer & Explanation Answer: D) H2O

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams

4 5089
Q:

Market regulation system was introduced by

A) Illtutmish B) Ala-ud-din Khilji
C) Ghias-ud-din D) Muhammad Bin-Tughlaq
 
Answer & Explanation Answer: B) Ala-ud-din Khilji

Explanation:

Market regulation system was introduced by Ala-ud-Din Khilji. He was the second and the most powerful ruler of the Khalji dynasty that ruled the Delhi Sultanate in the Indian subcontinent. 

Report Error

View Answer Report Error Discuss

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

5 5089