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
How to write c functions that modify head pointer of a linked list?
Which is best linux os?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
Explain the properties of union. What is the size of a union variable
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
swap 2 numbers without using third variable?
What is indirection? How many levels of pointers can you have?
How does pointer work in c?
can anyone suggest some site name..where i can get some good data structure puzzles???
write a c program for swapping two strings using pointer
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What is the deal on sprintf_s return value?
What are the __date__ and __time__ preprocessor commands?
What is volatile variable in c?