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
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
How can I dynamically allocate arrays?
What is the explanation for the dangling pointer in c?
Describe static function with its usage?
Can main () be called recursively?
What is use of null pointer in c?
When was c language developed?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
Dont ansi function prototypes render lint obsolete?
Define macros.
Explain what is a pragma?
What do mean by network ?
in iso what are the common technological language?
In C programming, what command or code can be used to determine if a number of odd or even?
What are the advantages of c language?