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

Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

653


Why is it important to memset a variable, immediately after allocating memory to it ?

1555


What is omp_num_threads?

581


What are the types of i/o functions?

677


How can I write functions that take a variable number of arguments?

626






What is function what are the types of function?

558


Differentiate between Macro and ordinary definition.

729


Is null always equal to 0(zero)?

581


In which header file is the null macro defined?

854


What are the 4 data types?

594


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?

979


What is the full form of getch?

583


Explain what is the benefit of using enum to declare a constant?

588


Why does this code crash?

619


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?

1775