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
In c language can we compile a program without main() function?
how to build a exercise findig min number of e heap with list imlemented?
What are comments and how do you insert it in a C program?
Why n++ execute faster than n+1 ?
Explain what is a program flowchart and explain how does it help in writing a program?
What does & mean in scanf?
Is there any demerits of using pointer?
How can a string be converted to a number?
What is sorting in c plus plus?
Why is struct padding needed?
Why is it that not all header files are declared in every C program?
Why c is known as a mother language?
Explain the properties of union.
What is meant by inheritance?
What is the significance of scope resolution operator?