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...

difference between i++* and *++i

Answer Posted / gv_shreenivas

The postfix ++ and -- operators essentially have higher
precedence than the prefix unary operators. Therefore, *i++
is equivalent to *(i++); it increments i, and returns the
value which i pointed to before i was incremented. To
increment the value pointed to by i, use (*i)++ (or perhaps
++*i, if the evaluation order of the side effect doesn't
matter).

Ref:comp.lang.c FAQ list ยท Question 4.3

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you restore a redirected standard stream?

1074


What do you mean by Recursion Function?

1087


What is non linear data structure in c?

984


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2088


What is the difference between text files and binary files?

1313


What is #pragma statements?

1065


What is #include conio h?

970


Write a code to generate a series where the next element is the sum of last k terms.

1186


What are enums in c?

1143


What is difference between constant pointer and constant variable?

1236


What is struct node in c?

1040


How do you list files in a directory?

1095


What is meant by recursion?

1018


When should the register modifier be used? Does it really help?

936


Explain how do you print only part of a string?

1177