what is difference between ++(*p) and (*p)++
Answer Posted / umamaheswari
p is a pointer variable which is holding the address of
another variable ,*p indicates the value that stored in
particular address
++(*p)-the value of the particular variable which is stored
in p is first incremented and used by next instruction
(*p)++ -the value of the particular variable which is
stored is executed or used by next instruction as it is
what it was,if it is any looping statement first time the
loop will be executed with the original value while doing
the second looping it is incremented by 1
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is a const pointer?
How can a process change an environment variable in its caller?
What will be the outcome of the following conditional statement if the value of variable s is 10?
How is null defined in c?
What is c token?
Explain how does free() know explain how much memory to release?
What happens if you free a pointer twice?
Why is it usually a bad idea to use gets()? Suggest a workaround.
How can you determine the size of an allocated portion of memory?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What happens if header file is included twice?
What is extern c used for?
What are examples of structures?
How macro execution is faster than function ?
Compare array data type to pointer data type