program in c to print 1 to 100 without using loop
Answer Posted / praveen
#include<stdio.h>
#include<stdlib.h>
void prav(int);
main()
{
int i=1;
prav(i);
}
void prav(int j)
{
if(j<101)
{printf("%d\n",j);
j++;
prav(j);}
else
exit(0);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is union and structure?
Is printf a keyword?
What are all different types of pointers in c?
Linked lists -- can you tell me how to check whether a linked list is circular?
Explain how many levels deep can include files be nested?
Explain pointers in c programming?
What is meant by type specifiers?
What is the use of define in c?
How can I run c program?
c program for searching a student details among 10 student details
What is the use of a ‘ ’ character?
Explain what are the advantages and disadvantages of a heap?
Who is the main contributor in designing the c language after dennis ritchie?
Tell me is null always defined as 0(zero)?
What is extern variable in c with example?