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
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
What happens if you free a pointer twice?
What are the 3 types of structures?
Explain what is the difference between functions abs() and fabs()?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
Why we use break in c?
What is context in c?
Is fortran still used today?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
Do you know the use of 'auto' keyword?
What is a const pointer?
Is there sort function in c?
Explain what are global variables and explain how do you declare them?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.