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

Minjar Fair is the important fair celebrated in Chamba district. What does 'Minjar' represent for  ?

A) Lotus flowers B) Wheat flowers
C) Local Custom D) Maize flowers
 
Answer & Explanation Answer: D) Maize flowers

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places
Exam Prep: Bank Exams

6 5549
Q:

World’s largest floating Solar Farm launched in ____________.

A) Japan B) China
C) Russia D) France
 
Answer & Explanation Answer: B) China

Explanation:

China flicked the switch on the world’s largest floating solar energy plant.  The massive waterborne plant is expected to generate 40 megawatts at one time and could supply electricity for over 15,000 homes. The pioneering project, located in eastern China, is thought to cement China’s status as a top producer of solar energy in the world.  The plant has been built in Huainan city, Anhui Province, by Sungrow Power Supply, a Chinese company specialised in renewable energy.

Report Error

View Answer Report Error Discuss

Filed Under: Longest, Shortest, Deepest
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

11 5548
Q:

Which is fastest swimming fish

Answer

sailfish

Report Error

View answer Workspace Report Error Discuss

34 5548
Q:

I am always infront of you, but you will never see me. Who am I?

A) Mirror B) Shadow
C) Future D) None of the above
 
Answer & Explanation Answer: C) Future

Explanation:

Yes, future is always infront of us, but no one can see it.

Report Error

View Answer Report Error Discuss

3 5547
Q:

Which one of the following was not authorised by Annie Besant?

A) The future of Indian politics B) How India fought for freedom
C) The case for India D) India Old and New
 
Answer & Explanation Answer: D) India Old and New

Explanation:

Except option D all the other were posted by Annie Besent

Report Error

View Answer Report Error Discuss

Filed Under: Indian History

3 5547
Q:

Commissioners for the Affairs of India were known as 

A) Court of directors B) Board of Directors
C) Board of Control D) Board of Merchants
 
Answer & Explanation Answer: C) Board of Control

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

6 5546
Q:

MICR stands for

A) Magnetic Ink Code Reader B) Magnetic Ink Case Reader
C) Magnetic Ink Character Reader D) None of the above
 
Answer & Explanation Answer: C) Magnetic Ink Character Reader

Explanation:

MICRCode1549972776.png image

MICR stands for Magnetic Ink Character Reader.

Report Error

View Answer Report Error Discuss

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

4 5544