main()
{
int i=1;
while (i<=5)
{
printf("%d",i);
if (i>2)
goto here;
i++;
}
}
fun()
{
here:
printf("PP");
}
Answer Posted / dinakaran gct
The program is error because of the "goto" statement can't
jump from one segment to another segment i.e not support for
long jump.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is a program flowchart and how does it help in writing a program?
What is dangling pointer in c?
What are the different properties of variable number of arguments?
Explain the Difference between the New and Malloc keyword.
What is the use of volatile?
Tell me what are bitwise shift operators?
What is a good way to implement complex numbers in c?
How can I ensure that integer arithmetic doesnt overflow?
How can you find out how much memory is available?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What is a program?
Explain how do you list files in a directory?
What are valid signatures for the Main function?
List a few unconditional control statement in c.
How do you use a 'Local Block'?