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
Whats s or c mean?
Is it possible to have a function as a parameter in another function?
What's the best way of making my program efficient?
Explain what is the difference between text files and binary files?
Are enumerations really portable?
What does the c in ctime mean?
What are pragmas and what are they good for?
What are types of functions?
How do you do dynamic memory allocation in C applications?
Explain the ternary tree?
What is an expression?
Why is c called a structured programming language?
how to capitalise first letter of each word in a given string?
What is const and volatile in c?
What is huge pointer in c?