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

A series of instructions that tells a computer what to do and how to do it is called a _______

A) Program B) Command
C) User response D) Processor
 
Answer & Explanation Answer: A) Program

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

6 5529
Q:

Late Raja Ravi Verma, was an eminent figure in which of the following fields

A) Dance B) Politics
C) History D) Painting
 
Answer & Explanation Answer: D) Painting

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

3 5528
Q:

Who was the first(1st) ODI captain for India?

A) Ajit Wadekar B) Bishen Singh Bedi
C) Nawab Pataudi D) Vinoo Mankad
 
Answer & Explanation Answer: A) Ajit Wadekar

Explanation:

who_was_the_1st_odi_captain_for_india1561445632.jpg image

Ajit Laxman Wadekar was an Indian international cricketer who played for the Indian national team between 1966 and 1974. He is from Mumbai.

Report Error

View Answer Report Error Discuss

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

1 5527
Q:

Leukorrhea may be associated with

A) Cervicitis B) Ovarian Cysts
C) Eclampsia D) Menorrhagia
 
Answer & Explanation Answer: A) Cervicitis

Explanation:

Leukorrhea is a thick, whitish or yellowish vaginal discharge. There are many causes of leukorrhea, the usual one being estrogen imbalance. The amount of discharge may increase due to vaginal infection or STDs, and it may disappear and reappear from time to time. This discharge can keep occurring for years, in which case it becomes more yellow and foul-smelling. It is usually a non-pathological symptom secondary to inflammatory conditions of vagina or cervix.

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE
Job Role: Analyst

4 5525
Q:

Which organization created a shared economy?

A) North American Free Trade Agreements B) Association of Southeast Asian Nations
C) World Trade Organization D) European Union
 
Answer & Explanation Answer: D) European Union

Explanation:

The organization that created the shared economy is European Union.

Report Error

View Answer Report Error Discuss

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

3 5524
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 5523
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 5522