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

What is the use of f in c?

942


In which layer of the network datastructure format change is done

1844


What is the purpose of the statement: strcat (S2, S1)?

1102


differentiate built-in functions and user – defined functions.

1046


Explain what standard functions are available to manipulate strings?

1032


What is pragma in c?

1143


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

988


Can we use visual studio for c?

1018


What is the difference between a free-standing and a hosted environment?

1104


int i=10; printf("%d %d %d", i, i=20, i);

1559


How can this be legal c?

1053


Is a house a shell structure?

1116


write a proram to reverse the string using switch case?

2897


Why c language?

1012


Is c is a high level language?

1140