main()
{
int i=1;
while (i<=5)
{
printf("%d",i);
if (i>2)
goto here;
i++;
}
}
fun()
{
here:
printf("PP");
}

Answer Posted / jaroosh

Exactly, to be able to move control flow to here, you would
have to make a long jump using not very common functions
(that do actually more than goto) : setjmp and longjmp
(please look up those functions in google or some C standard
library reference).

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In c language can we compile a program without main() function?

584


how to build a exercise findig min number of e heap with list imlemented?

1614


What are comments and how do you insert it in a C program?

747


Why n++ execute faster than n+1 ?

1853


Explain what is a program flowchart and explain how does it help in writing a program?

653






What does & mean in scanf?

606


Is there any demerits of using pointer?

634


How can a string be converted to a number?

521


What is sorting in c plus plus?

568


Why is struct padding needed?

635


Why is it that not all header files are declared in every C program?

687


Why c is known as a mother language?

650


Explain the properties of union.

615


What is meant by inheritance?

636


What is the significance of scope resolution operator?

865