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

What the advantages of using Unions?

1233


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2648


Explain what is the difference between functions getch() and getche()?

1059


Write the syntax and purpose of a switch statement in C.

1109


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

1045


What is difference between structure and union in c programming?

1117


What is a global variable in c?

1019


Here is a good puzzle: how do you write a program which produces its own source code as output?

1108


How do you define structure?

1049


What is sorting in c plus plus?

982


What are the types of pointers in c?

1029


How do you search data in a data file using random access method?

1312


What does %c do in c?

1001


What is masking?

1157


Can the “if” function be used in comparing strings?

1061