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

what is difference between ++(*p) and (*p)++

Answer Posted / umamaheswari

p is a pointer variable which is holding the address of
another variable ,*p indicates the value that stored in
particular address

++(*p)-the value of the particular variable which is stored
in p is first incremented and used by next instruction

(*p)++ -the value of the particular variable which is
stored is executed or used by next instruction as it is
what it was,if it is any looping statement first time the
loop will be executed with the original value while doing
the second looping it is incremented by 1

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a const pointer?

1039


How can a process change an environment variable in its caller?

1127


What will be the outcome of the following conditional statement if the value of variable s is 10?

1231


How is null defined in c?

1101


What is c token?

1012


Explain how does free() know explain how much memory to release?

1012


What happens if you free a pointer twice?

1027


Why is it usually a bad idea to use gets()? Suggest a workaround.

1689


How can you determine the size of an allocated portion of memory?

1237


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1147


What happens if header file is included twice?

1089


What is extern c used for?

998


What are examples of structures?

1026


How macro execution is faster than function ?

1131


Compare array data type to pointer data type

966