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:

What has 3 feet but cannot walk?

Answer

We know that 1 yard = 3 feet. 


 


A yardstick which is used for measurement has 3 feet long but it cannot walk.


 

Report Error

View answer Workspace Report Error Discuss

5 5097
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 5095
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 5095
Q:

Which of the following solutions is alkaline?

 

A) H+ <1 × 10-7 Mol/l B) H+ = 1 × 10-4 Mol/l
C) H+ = 1 × 10-7 Mol/l D) H+ > 1 × 10-7 Mol/l
 
Answer & Explanation Answer: A) H+ <1 × 10-7 Mol/l

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

2 5091
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:

Voting rights in the IMF are distributed on the basis of ___________.

 

A) one country one vote B) proportion to the share of the income of the country in the world income
C) proportion to contributions given by each country   D) proportion to quota allotted to countries from timed to time  
 
Answer & Explanation Answer: D) proportion to quota allotted to countries from timed to time  

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

0 5090
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 5087