what is difference between ++(*p) and (*p)++
Answer Posted / manju
both increments the value not the address. but the
difference lies in post and pre increment..
for example
main()
{
int i=2,*p;
p=&i;
}
when (*p)++ is given the o/p will be 2.
and in next line the value is incremented. in ++(*p)
the value is 3 since it is post
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Why c is called top down?
how is the examination pattern?
Explain the difference between structs and unions in c?
What are header files and explain what are its uses in c programming?
What is the acronym for ansi?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
Explain what is meant by high-order and low-order bytes?
Why we use conio h in c?
What are qualifiers and modifiers c?
For what purpose null pointer used?
What is the difference between array and linked list in c?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Why do we use header files in c?
What happens if you free a pointer twice?
What are the different types of objects used in c?