Question
What will happen if the below program is executed?
int main()
{
int main = 3;
printf("%d", main);
return 0;
}
int main()
{
int main = 3;
printf("%d", main);
return 0;
}
Answer: Option C
Was this answer helpful ?
A C program can have same function name and same variable name.
$ cc pgm3.c
$ a.out
3
Was this answer helpful ?
Submit Solution