Write a C program to print 1 2 3 ... 100 without using
loops?

Answer Posted / gunabalan

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

Is This Answer Correct ?    36 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the advantages and disadvantages of macros.

634


Explain the ternary tree?

613


What does 3 mean in texting?

625


What is the difference between printf and scanf in c?

759


How do you list files in a directory?

573






Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

695


Is linux written in c?

607


What are inbuilt functions in c?

570


What are identifiers c?

575


When should a type cast not be used?

637


What is advantage of pointer in c?

707


What is difference between structure and union with example?

605


c language interview questions & answer

1468


what are bit fields in c?

613


How can I generate floating-point random numbers?

615