C - Functions - Discussion

You Are Here :: Home > C > Functions - Discussion

 



Q.

There is a mistake in the following code, add a statement in it to remove it.

main()
{
int a;
a=f(10,3.14)
printf("%d",a);
}
f(int aa,float bb)
{
return((float)aa+bb);
}

A. Add the function prototype in main()
float f(int);
B. Add the function prototype in main()
float f(float);
C. Add the function prototype in main()
int f(int,float);
D. Add the function prototype in main()
float f(int,float);

Answer: Option D
Explaination:

No Explanation



Discussion

Your Comments Goes here...
NameDiscussion