1.

What Happens When We Use Incremental Operator In A Pointer?

Answer»

<P>It DEPENDS upon the type of the pointer. It gets incremented by the size of the data type, the pointer is POINTING to. For example
char p; p++; /* here p increments by 1*/
int p; p++;/* here p increments by 4(for 32 bit system)*/

It depends upon the type of the pointer. It gets incremented by the size of the data type, the pointer is pointing to. For example
char p; p++; /* here p increments by 1*/
int p; p++;/* here p increments by 4(for 32 bit system)*/



Discussion

No Comment Found