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

Why can't I perform arithmetic on a void* pointer?

645


Under what circumstances does a name clash occur?

704


What is the difference between array_name and &array_name?

787


Can stdout be forced to print somewhere other than the screen?

631


What are formal parameters?

669






What are the c keywords?

759


What does s c mean in text?

630


Is there a way to compare two structure variables?

621


show how link list can be used to repersent the following polynomial i) 5x+2

1690


With the help of using classes, write a program to add two numbers.

626


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

1530


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1528


What are valid signatures for the Main function?

707


Explain a file operation in C with an example.

669


What is the use of bitwise operator?

699