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
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Why is it important to memset a variable, immediately after allocating memory to it ?
What is omp_num_threads?
What are the types of i/o functions?
How can I write functions that take a variable number of arguments?
What is function what are the types of function?
Differentiate between Macro and ordinary definition.
Is null always equal to 0(zero)?
In which header file is the null macro defined?
What are the 4 data types?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
What is the full form of getch?
Explain what is the benefit of using enum to declare a constant?
Why does this code crash?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?