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
Explain the advantages and disadvantages of macros.
Explain the ternary tree?
What does 3 mean in texting?
What is the difference between printf and scanf in c?
How do you list files in a directory?
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)
Is linux written in c?
What are inbuilt functions in c?
What are identifiers c?
When should a type cast not be used?
What is advantage of pointer in c?
What is difference between structure and union with example?
c language interview questions & answer
what are bit fields in c?
How can I generate floating-point random numbers?