program in c to print 1 to 100 without using loop

Answer Posted / madhavi

main()
{
int i=1;
LOOP:
printf("%d\t",i);
i++;
if(i<=100)
goto LOOP;
}

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pragma in c?

846


I need previous papers of CSC.......plz help out by posting them.......

2066


How do I get a null pointer in my programs?

836


What is structure in c definition?

785


Write a program to check palindrome number in c programming?

776


What are the disadvantages of external storage class?

798


What does stand for?

830


Does c have an equivalent to pascals with statement?

756


What is chain pointer in c?

773


Why c is called top down?

843


Can you subtract pointers from each other? Why would you?

744


What is sizeof int?

835


Explain how are 16- and 32-bit numbers stored?

1012


What are valid signatures for the Main function?

942


What is the sizeof () operator?

788