main()
{
int i=1;
while (i<=5)
{
printf("%d",i);
if (i>2)
goto here;
i++;
}
}
fun()
{
here:
printf("PP");
}
Answer Posted / dinakaran gct
The program is error because of the "goto" statement can't
jump from one segment to another segment i.e not support for
long jump.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is a substring in c?
Calculate 1*2*3*____*n using recursive function??
what is the function of pragma directive in c?
What are the functions to open and close file in c language?
What is the difference between malloc() and calloc() function in c language?
What does c mean before a date?
What is a pointer in c plus plus?
Is calloc better than malloc?
What is data structure in c and its types?
What is wrong with this statement? Myname = 'robin';
What is operator precedence?
What is extern c used for?
Write a program to check armstrong number in c?
What does the && operator do in a program code?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?