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

#include<stdio.h>
int i;
void main()
{
if(i<=100)
{
printf("%d ",i);
i++;
main();
}
if(i>100)
exit(0);
}

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is s in c?

1094


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

2401


How to explain the final year project as a fresher please answer with sample project

1024


how to build a exercise findig min number of e heap with list imlemented?

2127


Explain what is meant by 'bit masking'?

1264


What are structural members?

1066


What is a structural principle?

1240


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

1173


What is a char in c?

1038


What is variable declaration and definition in c?

966


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1431


Why is struct padding needed?

1156


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2158


What is the size of enum in c?

1169


What is 1f in c?

2726