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
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Write a program to print all permutations of a given string.
What is the most efficient way to store flag values?
List the variables are used for writing doubly linked list program.
What is infinite loop?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What is the modulus operator?
What is the concatenation operator?
#include
What is the g value paradox?
What are data structures in c and how to use them?
What are local static variables? How can you use them?
Without Computer networks, Computers will be half the use. Comment.
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above