Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / professor uday kumar bhupathi
void main(int n)
{
if(n==0)
return;
main(--n);
printf("%d ",n);
getch();
}
| Is This Answer Correct ? | 12 Yes | 16 No |
Post New Answer View All Answers
What does c mean in basketball?
How macro execution is faster than function ?
Can we declare a function inside a function in c?
Can the sizeof operator be used to tell the size of an array passed to a function?
What is s in c?
What is the function of volatile in c language?
What is difference between stdio h and conio h?
What is the difference between pure virtual function and virtual function?
Is sizeof a keyword in c?
how is the examination pattern?
Give me the code of in-order recursive and non-recursive.
What is switch in c?
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
write a c program to calculate sum of digits till it reduces to a single digit using recursion
What is the need of structure in c?