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

Answer the Following Puzzle

Number Puzzles Questions and Answers

A) 22 B) 33
C) 44 D) 55
 
Answer & Explanation Answer: A) 22

Explanation:

In each circle,lower number equals the product of the top two numbers, subtracting 3 for the left hand circle, 4 for the middle, and 5 for the right hand circle.

Report Error

View Answer Report Error Discuss

Filed Under: Number Puzzles

25 5488
Q:

It travels over land and water. Who invented the HOVERCRAFT?

A) C. Cockerell B) S. Sperrow
C) O. Stricheg D) T. Henman
 
Answer & Explanation Answer: A) C. Cockerell

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

2 5486
Q:

The Sunderbans are found in

A) The Luni Basin B) Godavari Delta
C) Ganga Delta D) Mahanadi Delta
 
Answer & Explanation Answer: C) Ganga Delta

Explanation:

These mangrove or tidal forests are found in the submerged coastal plains of the Ganga. The name comes from the abundant sundari trees found here. 

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

4 5486
Q:

That which cannot be heard

A) Audible B) Edible
C) Disedible D) Inaudible
 
Answer & Explanation Answer: D) Inaudible

Explanation:

One word substitute for "That which cannot be heard" is Inaudible.

Report Error

View Answer Report Error Discuss

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

3 5482
Q:

How long does it take to become anorexic?

Answer

Normally it takes about 22 days to become anorexic, but for some people it can be as little as 16 days or as many as 42 days.


Of course this depends a little bit on your starting weight/BMI and the health condition of the person.


 

Report Error

View answer Workspace Report Error Discuss

6 5482
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 5481
Q:

Guess the Number missed in Number Challenge ?

18034303_1300193573421077_7214011606574212801_n1499930701.jpg image

A) 3 B) 5
C) 9 D) 1
 
Answer & Explanation Answer: B) 5

Explanation:

Sum of numbers in all individual boxes must be equal.

Here sum must be equal to 30.

=> x + 14 + 9 + 2 = 30 => x = 5. 

Report Error

View Answer Report Error Discuss

Filed Under: Number Puzzles
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

15 5479