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

Answer Posted / tejas

value that contained in p is incremented. (p is pointer.)

++(*p) --> pre-increment.
(*p)++ --> post-increment.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you use a 'Local Block'?

715


Is malloc memset faster than calloc?

611


Is c language still used?

533


What are preprocessor directives in c?

630


What is difference between %d and %i in c?

689






What is sizeof array in c?

588


What is the equivalent code of the following statement in WHILE LOOP format?

763


Is fortran still used today?

598


Why enum is used in c?

524


What are the 5 data types?

597


What does double pointer mean in c?

574


How can a number be converted to a string?

595


There seem to be a few missing operators ..

614


Can you add pointers together? Why would you?

640


What is the difference between int main and void main in c?

589