Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / lakshmipraba
#include<stdio.h>
int i;
void main()
{
if(i<=100)
{
printf("%d ",i);
i++;
main();
}
if(i>100)
exit(0);
}
| Is This Answer Correct ? | 14 Yes | 3 No |
Post New Answer View All Answers
What is a method in c?
What are the 5 types of inheritance in c ++?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
what is the format specifier for printing a pointer value?
program to convert a integer to string in c language'
What is FIFO?
What is the general form of #line preprocessor?
What is f'n in math?
to find the closest pair
What is structure data type in c?
How can I send mail from within a c program?
Can two or more operators such as and be combined in a single line of program code?
How many loops are there in c?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
Where register variables are stored in c?