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

What is the meaning of 2d in c?

609


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

669


What are the two types of structure?

569


How can I get random integers in a certain range?

609


Do you know the use of fflush() function?

594






Explain the use of #pragma exit?

694


Can you return null in c?

591


I need a sort of an approximate strcmp routine?

655


What is a constant?

628


Explain what are binary trees?

606


What is pre-emptive data structure and explain it with example?

3203


What is multidimensional arrays

624


which is conditional construct a) if statement b) switch statement c) while/for d) goto

736


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

1483


formula to convert 2500mmh2o into m3/hr

493