-
What will be the output of the following C code?
#include <stdio.h>
void fun(int n)
{
printf("Interview");
}
void fun(double n)
{
printf("Mania");
}
void main()
{
fun(10);
}
-
- Interview
- 10
- Mania
- Compilation Error
- None of these
Correct Option: D
Compilation Error
main.c:6:10: error: conflicting types for ‘fun’
void fun(double n)
^~~
main.c:2:10: note: previous definition of ‘fun’ was here
void fun(int n)