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

Answer Posted / vikram

here,*is the value at address operater;
according to heirarchy of operators,*is given the first
preference and then ++;
++(*p) means first incrementation of value at address of p
takes place and then execution takes place;
on the other hand,(*p)++ means first execution takes place
and then value at address of p is incremented

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many parameters should a function have?

670


How can you restore a redirected standard stream?

612


Why string is used in c?

586


hi any body pls give me company name interview conduct "c" language only

1671


What is the right type to use for boolean values in c?

589






Is multithreading possible in c?

571


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

1635


What is %lu in c?

689


What is the function of this pointer?

678


Tell me what is null pointer in c?

617


Why c is a mother language?

559


What is difference between static and global variable in c?

541


Is array a primitive data type in c?

581


what is the difference between class and unio?

1865


What does 3 mean in texting?

619