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

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

1561


how to write a c program to print list of fruits in alpabetical order?

2248


Why string is used in c?

959


Using which language Test cases are added in .ptu file of RTRT unit testing???

4229


Difference between goto, long jmp() and setjmp()?

1133


What was noalias and what ever happened to it?

995


Can the size of an array be declared at runtime?

1033


How can you tell whether a program was compiled using c versus c++?

1054


What are header files in c?

1036


write a program to concatenation the string using switch case?

2044


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2115


What is a node in c?

934


What are data structures in c and how to use them?

1111


What is unary operator?

1060


What is a 'null pointer assignment' error?

1173