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 / 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


Please Help Members By Posting Answers For Below Questions

Explain enumerated types.

991


Is main a keyword in c?

1091


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2337


Do variables need to be initialized?

1007


What is c programing language?

1058


Mention four important string handling functions in c languages .

1062


Explain c preprocessor?

1060


what are the 10 different models of writing an addition program in C language?

1860


Why c is known as a mother language?

1050


Explain what is meant by high-order and low-order bytes?

1014


Why doesn't C support function overloading?

2650


What is the difference between mpi and openmp?

1235


What is spark map function?

1071


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1062


Can a local variable be volatile in c?

963