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
What does a function declared as pascal do differently?
Can include files be nested? How many levels deep can include files be nested?
Explain what is a stream?
What is meant by initialization and how we initialize a variable?
Describe dynamic data structure in c programming language?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is a stream?
What is wild pointer in c?
find out largest elemant of diagonalmatrix
What is a good data structure to use for storing lines of text?
What is getch() function?
What is the difference between local variable and global variable in c?
Explain which function in c can be used to append a string to another string?