Sail E0 Webinar
Question

What is the output of the program ?


#include<stdio.h>
int main()
{
extern int fun(float);
int a;
a = fun(3.14);
printf("%d\n", a);
return 0;
}
int fun(int aa)
{
return (int)++aa;
}


Options:
A .  3
B .  3.14
C .  0
D .  Compile Error
Answer: Option D

2 Errors
1. Type mismatch in redeclaration of fun
2. Type mismatch in parameter aa




Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers