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
What is class and object in c?
How do you write a program which produces its own source code as output?
How can I send mail from within a c program?
What is a null pointer in c?
What is the modulus operator?
Is it better to use a macro or a function?
write a progrmm in c language take user interface generate table using for loop?
What is the difference between exit() and _exit() function?
What is difference between far and near pointers?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What is the sizeof () a pointer?
How to compare array with pointer in c?
Why isnt there a numbered, multi-level break statement to break out
What is the benefit of using const for declaring constants?