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

Explain how do you convert strings to numbers in c?

1024


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1087


Explain the concept and use of type void.

1064


Why isnt there a numbered, multi-level break statement to break out

997


How would you obtain the current time and difference between two times?

1238


How to establish connection with oracle database software from c language?

2143


What is difference between structure and union with example?

992


What are the __date__ and __time__ preprocessor commands?

1044


In which layer of the network datastructure format change is done

1840


What is a program flowchart and how does it help in writing a program?

1086


What language is windows 1.0 written?

992


Explain the difference between malloc() and calloc() in c?

1007


What is use of #include in c?

1091


what are bit fields in c?

1604


What is string in c language?

1077