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
Can the size of an array be declared at runtime?
How can I trap or ignore keyboard interrupts like control-c?
How do I round numbers?
What is this infamous null pointer, anyway?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
Explain how can you avoid including a header more than once?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
What are the types of functions in c?
How do I use strcmp?
Why is extern used in c?
What is abstract data structure in c?
What are the difference between a free-standing and a hosted environment?
Define circular linked list.
What is meant by inheritance?
i got 75% in all semester am i eligible for your company