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


Please Help Members By Posting Answers For Below Questions

What are the different types of linkage exist in c?

609


What is void main () in c?

722


What are the 4 data types?

592


What are lookup tables in c?

547


What is the right type to use for boolean values in c?

580






Create a simple code fragment that will swap the values of two variables num1 and num2.

802


How to throw some light on the b tree?

600


What does d mean?

581


What is a file descriptor in c?

556


How do you determine the length of a string value that was stored in a variable?

647


What do you mean by scope of a variable in c?

540


Sir i need notes for structure,functions,pointers in c language can you help me please

1941


What does the function toupper() do?

649


What is a keyword?

740


What is the function of this pointer?

666