what is difference between ++(*p) and (*p)++

Answer Posted / savita

++(*p) means address that contained in p is incremented.

(*p)++ in this case since both the operator are unary
operator , so it's priority is from right to left.Hence here
first address that contained in p is incremented & then
gives the value at that address.

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why we wont use '&' sing in aceesing the string using scanf

1787


What happens if you free a pointer twice?

613


write a proram to reverse the string using switch case?

2473


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

644


What are the advantages of Macro over function?

1211






How are strings stored in c?

599


why do some people write if(0 == x) instead of if(x == 0)?

657


Is there any data type in c with variable size?

636


Write a program which returns the first non repetitive character in the string?

606


Why c is procedure oriented?

577


What the different types of arrays in c?

618


Do you know the use of 'auto' keyword?

664


How do you list a file’s date and time?

637


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3151


Explain zero based addressing.

613