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 / alok kumar

++(*p) :- means that first increment the value of that variable which address holds p .than any operation will perform. ex:- int a=10;int *p; p=&a;
int c=++(*p);printf("%d,%d",c,*p);out put:-11 , 11 .


(*p)++ :- means that first assign the value than increment the value by 1. ex:- int a=10;int *p; p=&a;
int c=(*p)++;printf("%d,%d",c,*p);out put:-10 , 11 .

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does the call char scanf work?

1261


What is the process of writing the null pointer?

1065


All technical questions

2057


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2147


Add Two Numbers Without Using the Addition Operator

882


How many keywords are there in c?

1124


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

1283


What is the size of array float a(10)?

1193


If the size of int data type is two bytes, what is the range of signed int data type?

1070


What is the main difference between calloc () and malloc ()?

1235


What does 4d mean in c?

1561


Write a program to reverse a string.

1146


What is the significance of an algorithm to C programming?

1096


Why does everyone say not to use gets?

1200


What is the best style for code layout in c?

1146