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
What is the meaning of 2d in c?
Explain that why C is procedural?
What is the main difference between calloc () and malloc ()?
Discuss the function of conditional operator, size of operator and comma operator with examples.
What is array of pointers to string?
Sir i need notes for structure,functions,pointers in c language can you help me please
How do shell structures work?
When should I declare a function?
Explain what is the benefit of using enum to declare a constant?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
Why clrscr is used after variable declaration?
Explain how do you determine a file’s attributes?
Is c is a low level language?
What happens if header file is included twice?
Write a Program to accept different goods with the number, price and date of purchase and display them