main()
{
int i=1;
while (i<=5)
{
printf("%d",i);
if (i>2)
goto here;
i++;
}
}
fun()
{
here:
printf("PP");
}
Answer Posted / surenda pal singh chouhan
Compiler error: Undefined label 'here' in function main
Explanation:
Labels have functions scope, in other words The scope of
the labels is limited to functions . The label 'here' is
available in function fun() Hence it is not visible in
function main.
| Is This Answer Correct ? | 16 Yes | 0 No |
Post New Answer View All Answers
Which is better between malloc and calloc?
What is a lookup table in c?
can we change the default calling convention in c if yes than how.........?
Difference between Function to pointer and pointer to function
What is signed and unsigned?
Why enum is used in c?
Is it possible to execute code even after the program exits the main() function?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What is the difference between exit() and _exit() function?
What is the meaning of && in c?
There seem to be a few missing operators ..
Where can I get an ansi-compatible lint?
How to write a multi-statement macro?
What is NULL pointer?
write a program to rearrange the array such way that all even elements should come first and next come odd