-
What will happen if the below program is executed?
#include <stdio.h>
int main()
{
int main = 25;
printf("%d", main);
return 0;
}
-
- It will cause a compile-time error
- It will cause a run-time error
- It will run without any error and prints
- It will experience infinite looping
- It will cause a compile-time error
Correct Option: C
A c program can have same function and variable name. This code will print 25.