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
how could explain about job profile
What is the difference between the local variable and global variable in c?
What is the difference between #include
What does sizeof int return?
Explain what is the benefit of using const for declaring constants?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
What is header file in c?
Explain modulus operator.
What is a pointer on a pointer in c programming language?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What is static memory allocation? Explain
number of times a digit is present in a number
What are data types in c language?
When should the const modifier be used?
Explain what is the difference between functions getch() and getche()?