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 null string in c?
explain how do you use macro?
What is signed and unsigned?
Explain how do you convert strings to numbers in c?
Where register variables are stored in c?
Explain what standard functions are available to manipulate strings?
How can a program be made to print the name of a source file where an error occurs?
How can I read and write comma-delimited text?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What does the message "automatic aggregate intialization is an ansi feature" mean?
Is this program statement valid? INT = 10.50;
When should we use pointers in a c program?
What is the use of a ‘ ’ character?
What is variable initialization and why is it important?
Are pointers really faster than arrays?