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 / suresh reddy

The correct answer is

5
3
1

because

in for loop "i--" statement is there and again in printf
statement "i--" is there.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I call a function with an argument list built up at run time?

1246


What is a loop?

1046


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

1187


What is the significance of an algorithm to C programming?

1046


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

1257


What are the advantages of Macro over function?

2023


Why doesnt long int work?

1041


What is indirection?

1092


Differentiate between new and malloc(), delete and free() ?

1183


explain what are actual arguments?

1091


What is nested structure?

1043


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1145


Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

1238


What is pointer & why it is used?

1118


What are the 4 types of organizational structures?

1104