what is difference between ++(*p) and (*p)++
Answer Posted / vikram
here,*is the value at address operater;
according to heirarchy of operators,*is given the first
preference and then ++;
++(*p) means first incrementation of value at address of p
takes place and then execution takes place;
on the other hand,(*p)++ means first execution takes place
and then value at address of p is incremented
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What are the types of functions in c?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
What does %p mean c?
What is meant by type casting?
Explain what is meant by 'bit masking'?
What is realloc in c?
What does. int *x[](); means ?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
what is the different bitween abap and abap-hr?
The __________ attribute is used to announce variables based on definitions of columns in a table?
What is scope of variable in c?
write a programming in c to find the sum of all elements in an array through function.
When should volatile modifier be used?
What is wild pointer in c?
What is sizeof array in c?