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

how does the for loop work actually..suppose for the
following program how it ll work plz explain to me
for(i=5;i>=0;i--)
prinf(i--);

Answer Posted / ratan

All above answers are wrong.
Correct answer is
5
3
1.
This is because the value "i" is decremented twice (once in
the loop and second time in the printf() function).

Is This Answer Correct ?    24 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is local and global variable in c?

1128


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1328


What is the best way of making my program efficient?

962


What is the maximum no. of arguments that can be given in a command line in C.?

1087


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1078


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1913


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2714


What is uint8 in c?

1055


Explain how can I open a file so that other programs can update it at the same time?

1055


Explain c preprocessor?

1045


What is the difference between scanf and fscanf?

1198


difference between Low, Middle, High Level languages in c ?

2024


diff between exptected result and requirement?

1990


Explain what are the __date__ and __time__ preprocessor commands?

1073


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

1010