If "ar" is a pointer to an element in the array, then what does the following statement do?
the precedence thing is driving me crazy, where can I find some detailed introduction to it on the internet? thanks a lot.Code:*(ar++)*=2;
Printable View
If "ar" is a pointer to an element in the array, then what does the following statement do?
the precedence thing is driving me crazy, where can I find some detailed introduction to it on the internet? thanks a lot.Code:*(ar++)*=2;
click
Why don't you just make a piece of sample code and see what it does? Then once you have the results, try to figure out if it's doing what you thought it would.
Quzah.
the above statement is more similar to what u have got. because the ++ operator is post increment operator. Will that make it easy for u to understand now.Code:*(p) *= 2;
ssharish2005