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

#include<stdio.h>
int i=100;
main()
{
if (i==0) return 0;
printf("%d\t",i);
i--;
main();
}

Is This Answer Correct ?    4 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

1152


What do you mean by Recursion Function?

1119


What is the function of volatile in c language?

1124


How do you override a defined macro?

1262


What is a rvalue?

1201


What is the best way of making my program efficient?

1029


Difference between macros and inline functions? Can a function be forced as inline?

1268


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2173


Is c a great language, or what?

1109


How to write a multi-statement macro?

1041


how to make a scientific calculater ?

2067


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1250


What does void main return?

1118


any "C" function by default returns an a) int value b) float value c) char value d) a & b

1082


What is the size of enum in bytes?

1084