What is the output of this C code?
void main()
{
m();
void m()
{
printf("hi");
}
}
Answer: B
Correct answer: Compile time error
m is defined inside main, which standard C forbids - and it is also called before its definition is reached. The compiler rejects the program.
Please log in or register to report this question.