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

void main()
{
int i=1;
e:
printf("%d\t",i);
i++;
if(i<=100)
goto e;
}

Is This Answer Correct ?    36 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can variables be declared anywhere in c?

1100


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1414


What are register variables in c?

1021


What are the benefits of c language?

1184


What are header files why are they important?

1104


Explain the difference between call by value and call by reference in c language?

1122


What extern c means?

1013


How can I handle floating-point exceptions gracefully?

1186


What is variables in c?

1057


Describe how arrays can be passed to a user defined function

1306


What are file streams?

1024


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

1065


ATM machine and railway reservation class/object diagram

5257


Can a variable be both static and volatile in c?

1054


Explain the meaning of keyword 'extern' in a function declaration.

1161