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

Was 2000 a leap year?

633


What is self-referential structure in c programming?

661


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

695


What is the modulus operator?

737


What are the salient features of c languages?

626






Differentiate between full, complete & perfect binary trees.

674


Can we declare a function inside a function in c?

591


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

771


What is logical error?

605


Hai what is the different types of versions and their differences

1492


Why is not a pointer null after calling free?

599


Disadvantages of C language.

663


Can a variable be both constant and volatile?

563


What are the types of pointers?

603


Is c language still used?

538