Questions

Q:

What would be the output of the following program?

main()

{

    extern int fun ( float );

    int a;

    a = fun ( 3. 14 );

    printf ("%d", a);

}

int fun ( aa )

float aa ;

{

     return ( (int) aa );

}

Answer

Error occurs because we have mixed the ANSI prototype with K & R style of function definition.


When we use ANSI prototype for a function and pass a float to the function it is promoted to a double. When the function accepts this double into a float a type mismatch occurs hence the error.


The remedy for this error could be to define the function as :


int fun (float aa)


{


  ....


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

9 8431
Q:

Which statement about broadheads is true?

A) Use needle-nose pliers or locking pliers to screw on broadheads B) Broadheads are risk-free
C) Dress game with great caution until you find all parts of the broadhead D) Broadheads have a dull edge
 
Answer & Explanation Answer: C) Dress game with great caution until you find all parts of the broadhead

Explanation:

The statement about broadheads is true is Dress game with great caution until you find all parts of the broadhead.

Report Error

View Answer Report Error Discuss

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

5 8428
Q:

Among the following States, which one was formed last

A) Andhra Pradesh B) Gujarat
C) Karnataka D) Punjab
 
Answer & Explanation Answer: A) Andhra Pradesh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

12 8424
Q:

Rearrange the parts of the sentence in correct order.

Senior officials
P - ­to negotiate a solution
Q - ­readiness
R­ - have signalled China's

A) QRP B) RQP
C) PRQ D) PQR
 
Answer & Explanation Answer: B) RQP

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 8424
Q:

Rearrange the parts of the sentence in correct order.


We must urgently


P-ethics that respects, and responds
Q-humanely to, the strangers in our cities
R-and consciously develop a new

A) RQP B) PQR
C) RPQ D) QRP
 
Answer & Explanation Answer: C) RPQ

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT

0 8424
Q:

An objective of the National Food Security Mission is to increase the production of certain crops through area expansion and productivity enhancement in a sustainable manner in the identified districts of the country. What are those crops?

A) Rice and Wheat only B) Rice, Wheat and pulses only
C) Rice, Wheat, Pulses and oil seeds only D) Rice, Wheat, Pulses, oil seeds and vegetables
 
Answer & Explanation Answer: B) Rice, Wheat and pulses only

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

8 8420
Q:

Which of the following is/are 'rain cloud'?

1. Cirrus
2. Nimbostratus
3. Cumulonimbus
4. Altocumulus

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 8419
Q:

Tochi, Gilgit and Hunza are tributaries of

A) Ganga B) Indus
C) Brahmaputra D) Yamuna
 
Answer & Explanation Answer: B) Indus

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

19 8416