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 the use of a ‘’ character?

1095


I need a sort of an approximate strcmp routine?

1033


The __________ attribute is used to announce variables based on definitions of columns in a table?

1214


Are the expressions * ptr ++ and ++ * ptr same?

1158


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

3546


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

2096


What is the difference between array and structure in c?

1173


What is c standard library?

1210


What is ctrl c called?

1053


What is else if ladder?

1025


I have a varargs function which accepts a float parameter?

1053


How do you list files in a directory?

1146


What is an lvalue in c?

1129


How can I recover the file name given an open stream or file descriptor?

1082


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

1103