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 s 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.
How to explain the final year project as a fresher please answer with sample project
how to build a exercise findig min number of e heap with list imlemented?
Explain what is meant by 'bit masking'?
What are structural members?
What is a structural principle?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
What is a char in c?
What is variable declaration and definition in c?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
Why is struct padding needed?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
What is the size of enum in c?
What is 1f in c?