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 are file streams?
What is the most efficient way to count the number of bits which are set in an integer?
What is the difference between exit() and _exit() function?
What is the difference between āgā and āgā in C?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
What is pass by reference in functions?
Explain heap and queue.
What is ponter?
What is context in c?
What is huge pointer in c?
What is an endless loop?
What are the different types of endless loops?
What is derived datatype in c?
Tell me when would you use a pointer to a function?
What is an identifier?