Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a C program to print 1 2 3 ... 100 without using
loops?

Answer Posted / harsha

#include<stdio.h>

int i=0;

void main()
{
if(i==0)
clrscr();
if(i<100) {
printf("%d \t",++i);
main(); }
else {
getch();
exit(0); }
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can main () be called recursively?

1115


How can you determine the size of an allocated portion of memory?

1298


Difference between constant pointer and pointer to a constant.

1135


Write a program to swap two numbers without using a temporary variable?

1120


What is static memory allocation? Explain

1094


Explain what is the benefit of using an enum rather than a #define constant?

1218


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1297


How do you define CONSTANT in C?

1267


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

2153


Explain function?

1086


Combinations of fibanocci prime series

1609


What is a example of a variable?

1015


Explain what is the difference between a free-standing and a hosted environment?

1182


What does 3 mean in texting?

1092


Explain the use of fflush() function?

1079