Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / lakshmipraba
#include<stdio.h>
int i;
void main()
{
if(i<=100)
{
printf("%d ",i);
i++;
main();
}
if(i>100)
exit(0);
}
| Is This Answer Correct ? | 14 Yes | 3 No |
Post New Answer View All Answers
What does node * mean?
Is null valid for pointers to functions?
Is anything faster than c?
What is the Purpose of 'extern' keyword in a function declaration?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Can i use “int” data type to store the value 32768? Why?
What is string length in c?
How many keywords (reserve words) are in c?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
Explain built-in function?
What does & mean in scanf?
Is c is a middle level language?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Explain is it better to bitshift a value than to multiply by 2?