C++
Programming and Technical
Discuss on pointer arithmetic?
Read Solution (Total 2)
-
- In 16-bit machine(Turbo C), size of all types of pointer like int*, float*, char*, double* is always 2 bytes. When we perform any arithmetic function like increment on pointer, changes occurs as per the size of the primitive data type.
For example:
Int* i;
I++;
Here, pointer will be 2 bytes, when we increment it, it will increment by 2 bytes. Because int is 2 bytes. - 10 years agoHelpfull: Yes(2) No(0)
- thanks mani for such xplanatn..thank u onc again
- 9 years agoHelpfull: Yes(0) No(0)
C++ Other Question