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


Please Help Members By Posting Answers For Below Questions

Tell me what is the purpose of 'register' keyword in c language?

614


Hi can anyone tell what is a start up code?

1614


What is an operator?

656


What are the types of data files?

725


What is the difference between fread and fwrite function?

634






Why doesn't C support function overloading?

1611


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3051


Explain what is the benefit of using enum to declare a constant?

586


Does c have function or method?

585


What is function what are the types of function?

554


Write a program to generate the Fibinocci Series

656


What are structural members?

566


What is the value of c?

566


Why main function is special give two reasons?

942


Explain how do I determine whether a character is numeric, alphabetic, and so on?

648