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

Why is main function so important?

1096


What is structure in c explain with example?

1153


Is c is a high level language?

1192


Why does the call char scanf work?

1200


What is the default value of local and global variables in c?

1038


Explain what is the benefit of using enum to declare a constant?

1074


Explain what is a stream?

1083


What are the storage classes in C?

1155


What is the stack in c?

1130


what is different between auto and local static? why should we use local static?

1122


Which type of language is c?

1070


Describe how arrays can be passed to a user defined function

1287


What are the features of the c language?

1081


Does free set pointer to null?

1001


What is volatile variable in c with example?

1036