How to use a method signature in C:
What will be the output of below C program?
i = fun(10);
compile time error
run time error.
This program will give compile time error, because function declaration is not matching with function definition. In the signature/ declaration we are telling that the function won't take any arguments. but in the function call and function definition, we are passing values. Compiler will see this mismatch and rises compile time error.
Back To Top