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
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
How can this be legal c?
In C language what is a 'dangling pointer'?
What is the difference between malloc calloc and realloc in c?
How can I split up a string into whitespace-separated fields?
Can a function argument have default value?
Is stack a keyword in c?
Why is structure padding done in c?
What is the difference between array and pointer in c?
What is the difference between array_name and &array_name?
What is variable declaration and definition in c?
Which is the best website to learn c programming?
Are negative numbers true in c?
Give me the code of in-order recursive and non-recursive.
Explain can you assign a different address to an array tag?