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
Explain enumerated types.
Is main a keyword in c?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
Do variables need to be initialized?
What is c programing language?
Mention four important string handling functions in c languages .
Explain c preprocessor?
what are the 10 different models of writing an addition program in C language?
Why c is known as a mother language?
Explain what is meant by high-order and low-order bytes?
Why doesn't C support function overloading?
What is the difference between mpi and openmp?
What is spark map function?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
Can a local variable be volatile in c?