Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / vijaya raghavan
#include<stdio.h>
int i=100;
main()
{
if (i==0) return 0;
printf("%d\t",i);
i--;
main();
}
| Is This Answer Correct ? | 4 Yes | 11 No |
Post New Answer View All Answers
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
What do you mean by Recursion Function?
What is the function of volatile in c language?
How do you override a defined macro?
What is a rvalue?
What is the best way of making my program efficient?
Difference between macros and inline functions? Can a function be forced as inline?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
Is c a great language, or what?
How to write a multi-statement macro?
how to make a scientific calculater ?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
What does void main return?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What is the size of enum in bytes?