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


Please Help Members By Posting Answers For Below Questions

how can I convert a string to a number?

592


How do you define CONSTANT in C?

647


if p is a string contained in a string?

1404


Where is volatile variable stored?

642


Explain the use of keyword 'register' with respect to variables.

586






What is difference between && and & in c?

580


What are the 4 data types?

592


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3120


What does %d do?

712


When do we get logical errors?

633


By using C language input a date into it and if it is right?

568


What is putchar() function?

633


How do we make a global variable accessible across files? Explain the extern keyword?

1416


In which language linux is written?

595


Explain what is the heap?

618