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 / preshit

o/p will b
4 2 0
bcoz first i=5 ok then condition after taht ok so printf
will decrement i, so o/p 4
then it decrement it twice for 2 times

OR
it will give syntax error if printf(i--)is wrong

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Between macros and functions,which is better to use and why?

2112


Does c have circular shift operators?

1183


what is the difference between 123 and 0123 in c?

1157


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1666


what is the difference between class and unio?

2305


What is the difference between arrays and pointers?

1066


Can you please explain the difference between malloc() and calloc() function?

1050


How are pointers declared in c?

1006


all c language question

2377


Why doesnt that code work?

1074


What is const keyword in c?

1122


What is c definition?

1195


Why is c so popular?

1118


define string ?

1056


What is the difference between array and linked list in c?

1083