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 us bitwise shift operators?
What is the use of a static variable in c?
What is the Purpose of 'extern' keyword in a function declaration?
Can I initialize unions?
What is data structure in c language?
What is the explanation for prototype function in c?
What does the file stdio.h contain?
What is c standard library?
What is action and transformation in spark?
What are the c keywords?
What is C language ?
Why does this code crash?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
How to declare pointer variables?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?