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

What does & mean in scanf?

1116


How to get string length of given string in c?

1069


What is c++ used for today?

1110


What is the difference between variable declaration and variable definition in c?

1065


Write a program which returns the first non repetitive character in the string?

1131


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

10211


What are the 5 elements of structure?

1084


Where are some collections of useful code fragments and examples?

1164


Explain 'far' and 'near' pointers in c.

1147


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1141


Explain union.

1180


Are pointers integers in c?

1083


Is file a keyword in c?

935


Write a program to reverse a linked list in c.

1141


What is pointer and structure in c?

1193