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 / manju

both increments the value not the address. but the
difference lies in post and pre increment..
for example
main()
{
int i=2,*p;
p=&i;
}

when (*p)++ is given the o/p will be 2.
and in next line the value is incremented. in ++(*p)
the value is 3 since it is post

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why c is called top down?

1157


how is the examination pattern?

2019


Explain the difference between structs and unions in c?

1024


What are header files and explain what are its uses in c programming?

1133


What is the acronym for ansi?

1047


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

1137


Explain what is meant by high-order and low-order bytes?

1047


Why we use conio h in c?

1225


What are qualifiers and modifiers c?

1004


For what purpose null pointer used?

1070


What is the difference between array and linked list in c?

1154


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1027


Why do we use header files in c?

1071


What happens if you free a pointer twice?

1071


What are the different types of objects used in c?

1028