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

India’s largest ground-based optical telescope has been installed in which state?

 

A) Uttar Pradesh B) Gujarat
C) Goa D) Uttarakhand
 
Answer & Explanation Answer: D) Uttarakhand

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 5093
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 5092
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 5090
Q:

Dome mountain are the result of

A) Intrusion of magma B) Folding
C) Frictions at the joints of the rocks D) Faulting
 
Answer & Explanation Answer: A) Intrusion of magma

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

5 5090
Q:

Elements having same atomic numbers but different mass number are called ______.

 

 

A) isotones B) Isotopes
C) isomopes D) isobar
 
Answer & Explanation Answer: B) Isotopes

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

0 5090
Q:

Which part of a computer performs calculations?

A) Control unit B) Arithmetic and logical unit
C) Both A & B D) Logic bus
 
Answer & Explanation Answer: B) Arithmetic and logical unit

Explanation:

A computer has a CPU which is called as Central Processing UNit or a Processor builton the mother board. It has many components like control unit and Arithmetic and logical unit. 

 

The Arithmetic and logical unit of the CPU performs the arithmetic operations or mathematical calculations.

Report Error

View Answer Report Error Discuss

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

6 5087
Q:

Which of the statements given below are correct?

A) In 2017, Glenn Maxwell captained the IPL team Kings XI Punjab.

B) Roger Federer won the Table Tennis 2017 ITTF World Tour Grand Finals Men's Singles.

C) Bernhard Langer won the Golf 2017 Senior PGA Championship.

A) Only A B) B and C
C) A and C D) A and B
 
Answer & Explanation Answer: C) A and C

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

0 5086