Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / sutanu
void main ()
{
static int i;
if (i <= 100)
{
printf ("%d\n", i);
i++;
main ();
}
}
| Is This Answer Correct ? | 53 Yes | 15 No |
Post New Answer View All Answers
Why is main function so important?
What is structure in c explain with example?
Is c is a high level language?
Why does the call char scanf work?
What is the default value of local and global variables in c?
Explain what is the benefit of using enum to declare a constant?
Explain what is a stream?
What are the storage classes in C?
What is the stack in c?
what is different between auto and local static? why should we use local static?
Which type of language is c?
Describe how arrays can be passed to a user defined function
What are the features of the c language?
Does free set pointer to null?
What is volatile variable in c with example?