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 is data structure in c language?
What do mean by network ?
how can I convert a string to a number?
Is it fine to write void main () or main () in c?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
What is %s and %d in c?
Dont ansi function prototypes render lint obsolete?
What are identifiers c?
What is printf () in c?
Explain how can I prevent another program from modifying part of a file that I am modifying?
Define Spanning-Tree Protocol (STP)
What does return 1 means in c?
Why clrscr is used in c?
What are the difference between a free-standing and a hosted environment?
what are the 10 different models of writing an addition program in C language?