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


Please Help Members By Posting Answers For Below Questions

What is a program flowchart and how does it help in writing a program?

669


What is dangling pointer in c?

627


What are the different properties of variable number of arguments?

669


Explain the Difference between the New and Malloc keyword.

690


What is the use of volatile?

614






Tell me what are bitwise shift operators?

660


What is a good way to implement complex numbers in c?

599


How can I ensure that integer arithmetic doesnt overflow?

612


How can you find out how much memory is available?

620


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

3251


What is a program?

669


Explain how do you list files in a directory?

620


What are valid signatures for the Main function?

703


List a few unconditional control statement in c.

564


How do you use a 'Local Block'?

728