Home » C Programming » Declarations and Initializations

What is the output of the program #include 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; }

Correct Answer: Compile Error

Explanation:

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

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion