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
Tell me what is the purpose of 'register' keyword in c language?
Hi can anyone tell what is a start up code?
What is an operator?
What are the types of data files?
What is the difference between fread and fwrite function?
Why doesn't C support function overloading?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
Explain what is the benefit of using enum to declare a constant?
Does c have function or method?
What is function what are the types of function?
Write a program to generate the Fibinocci Series
What are structural members?
What is the value of c?
Why main function is special give two reasons?
Explain how do I determine whether a character is numeric, alphabetic, and so on?