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 the use of a ‘ ’ character?
I need a sort of an approximate strcmp routine?
The __________ attribute is used to announce variables based on definitions of columns in a table?
Are the expressions * ptr ++ and ++ * ptr same?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
What is the difference between array and structure in c?
What is c standard library?
What is ctrl c called?
What is else if ladder?
I have a varargs function which accepts a float parameter?
How do you list files in a directory?
What is an lvalue in c?
How can I recover the file name given an open stream or file descriptor?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.