Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / neha
int i;
void main(void)
{
if(i<=100)
printf("%d\n", i);
i++;
main();
getch();
}
| Is This Answer Correct ? | 29 Yes | 26 No |
Post New Answer View All Answers
What are pointers? What are stacks and queues?
How can I split up a string into whitespace-separated fields?
What is the difference between malloc() and calloc() function in c language?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
Explain what’s a signal? Explain what do I use signals for?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Why we use conio h in c?
Explain output of printf("Hello World"-'A'+'B'); ?
How to draw the flowchart for structure programs?
How to get string length of given string in c?
What 'lex' does?
How can I write a function analogous to scanf?
Write a program to show the change in position of a cursor using c
What are run-time errors?
When the macros gets expanded?