for *ptr++ : unary ++ operator is having higher priority than unary * operator. so *ptr++ is equal to *(ptr++). ie, its pointing to the value next to previously pointing one. for (*ptr)++ : Its obvious that value will be incremented, which ptr is pointing. if ptr is pointing to address of another pointer it will be incremented accordingly.
....With Best Wishes......, Uma Maheswara Rao Lankoti, Amdocs DVCI, Pune - 411028. http://eswars.blogspot.com Ph: 09881741716. ------------------------ ----- Original Message ---- From: vineet kumar <[EMAIL PROTECTED]> To: c_group <[email protected]> Sent: Wednesday, December 6, 2006 9:23:44 AM Subject: [c-prog] difer btwn *ptr++ & (*ptr)++ hello friends ; i'm very confused tat wht would be d output of *ptr++ & (*ptr)++ if ptr is a pointer. plzzz help me. VINEET - NOIDA Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW ____________________________________________________________________________________ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited
