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

Select the synonym of

eccentric

 

A) whimsical B) chronic
C) bona fide D) typic
 
Answer & Explanation Answer: A) whimsical

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 8444
Q:

The project manager develops a process improvement plan to encourage continuous process improvement during the life of the project. Which of the following is a valid tool or technique to assist the project manager to assure the success of the process improvement plan?

A) Change control system B) Process analysis
C) Benchmarking D) Configuration management system
 
Answer & Explanation Answer: B) Process analysis

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

1 8440
Q:

The longest period of prenatal development is the

A) Germinal period B) Fetal period
C) Embryonic period D) None
 
Answer & Explanation Answer: B) Fetal period

Explanation:

The third and longest period of prenatal development, extending from the ninth week until birth is Fetal period.

 

The process of prenatal development occurs in three main stages. The first two weeks after conception are known as the germinal stage, the third through the eighth week are known as the embryonic period, and the time from the ninth week until birth is known as the fetal period.

 

Report Error

View Answer Report Error Discuss

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

8 8436
Q:

A drawing on transparent paper is

A) Blue print B) Negative
C) Transparency D) Red print
 
Answer & Explanation Answer: C) Transparency

Explanation:

The one word substitute for 'a drawing on transparent paper' is Transparency.

Report Error

View Answer Report Error Discuss

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

6 8433
Q:

The purpose of land reforms was to achieve ___________.

 

A) increase in production B) increase the purchasing power of the rural population
C) ensure distributive justice with economic growth D) All options are correct
 
Answer & Explanation Answer: D) All options are correct

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: Bank Exams

1 8426
Q:

Select the synonym of

ominous

 

A) secure B) auspicious
C) apocalyptic D) propitious
 
Answer & Explanation Answer: C) apocalyptic

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

1 8425
Q:

TEL minimise the knocking effect when mixed with petrol, it acts as_______

A) Positive catalyst B) Negative catalyst
C) Auto catalyst D) Induced catalyst
 
Answer & Explanation Answer: B) Negative catalyst

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

18 8417