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

The First Five Year Plan was based on ___________.

A) Herold Domar Model B) P.C . Mahalanobis Model
C) Both the Above D) None of the above
 
Answer & Explanation Answer: A) Herold Domar Model

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

9 5088
Q:

The...........dish is one of the most  popular dishes of Kashmir?

A) Aloo Ka Raita B) Dum Aloo
C) Kesar Chawal D) Murgh Achaari
 
Answer & Explanation Answer: B) Dum Aloo

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture

76 5087
Q:

Which of the statements given below are correct?

1. The author of the novel 'A Head Full of Ghosts' is M.R Carey.
2. The author of the novel 'The Cartel' is Don Winslow.
3. The author of the novel 'Dodgers' is Bill Beverly.

A) 1 and 2 B) 2 and 3
C) 1 and 3 D) 1, 2 and 3
 
Answer & Explanation Answer: B) 2 and 3

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: Bank Exams

0 5087
Q:

Out of all known elements, the minimum number is of ______.

 

A) Metals   B) Non-metals  
C) Metalloids D) No option is correct
 
Answer & Explanation Answer: C) Metalloids

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

0 5086
Q:

Which of the following is an endocrine gland?

A) Mammary glands B) Apocrine sweat glands
C) Reproductive glands D) Salivary glands
 
Answer & Explanation Answer: C) Reproductive glands

Explanation:

Endocrine glands are glands of the endocrine system that secrete their products, hormones, directly into the blood rather than through a duct.

 

The major glands of the endocrine system include:

pineal gland,

pituitary gland,

pancreas,

ovaries,

testes,

thyroid gland,

parathyroid gland,

hypothalamus and

adrenal glands.

Report Error

View Answer Report Error Discuss

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

2 5085
Q:

Improve the bracketed part of the sentence

 

Vikram (insist that) he was innocent.

 

A) insisted on that B) insisted that
C) insisted on D) no improvement
 
Answer & Explanation Answer: B) insisted that

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 5085
Q:

Highest Jute producing state in India?

A) Gujarat B) West Bengal
C) Uttar Pradesh D) Bihar
 
Answer & Explanation Answer: B) West Bengal

Explanation:

West Bengal is the highest Jute producing state in India followed by Bihar and Assam in second and third place.

Gujarat is the largest Cotton producing state in India.

Report Error

View Answer Report Error Discuss

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

9 5081