Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / sutanu
void main ()
{
static int i;
if (i <= 100)
{
printf ("%d\n", i);
i++;
main ();
}
}
| Is This Answer Correct ? | 53 Yes | 15 No |
Post New Answer View All Answers
What is the return type of sizeof?
What are the __date__ and __time__ preprocessor commands?
What is the size of a union variable?
What is || operator and how does it function in a program?
Where are local variables stored in c?
How can a number be converted to a string?
What do you know about the use of bit field?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
What are operators in c?
Why n++ execute faster than n+1 ?
How do shell structures work?
What does the error message "DGROUP exceeds 64K" mean?
What is the use of putchar function?
what is the difference between 123 and 0123 in c?
How do you override a defined macro?