What will happen if the following C code is executed?
#include <stdio.h>
int main()
{
int main = 3;
printf("%d", main);
return 0;
}
#include <stdio.h>
int main()
{
int main = 3;
printf("%d", main);
return 0;
}A. It will cause a compile-time error
B. It will cause a run-time error
C. It will run without any error and prints 3
D. It will experience infinite looping
Answer: Option C

Join The Discussion