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 / subha raman

The operation in for-loop is "i--"..so it will print the
decremented value first..hence the output will be:
4
3
2
1
0

Is This Answer Correct ?    14 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why c is a procedural language?

1127


How can I determine whether a machines byte order is big-endian or little-endian?

1124


What oops means?

1053


Explain bitwise shift operators?

1314


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

1158


What is the scope of static variable in c?

1078


Write a program to check armstrong number in c?

1178


What is the best way of making my program efficient?

1080


How to find a missed value, if you want to store 100 values in a 99 sized array?

1461


When can you use a pointer with a function?

1147


write a program to rearrange the array such way that all even elements should come first and next come odd

2348


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

1131


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

1125


In C, What is the #line used for?

2318


How can I find out if there are characters available for reading?

1165