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 difference between structure and union?
Where are the auto variables stored?
What is hungarian notation? Is it worthwhile?
What is variable declaration and definition in c?
What is assert and when would I use it?
How do I determine whether a character is numeric, alphabetic, and so on?
Can stdout be forced to print somewhere other than the screen?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
How can you be sure that a program follows the ANSI C standard?
How do you convert strings to numbers in C?
What is wrong with this initialization?
Can a function argument have default value?
What is a rvalue?
Do you have any idea how to compare array with pointer in c?