Name: OMGS HELP NOW!!! 2008-05-21 16:17
If I typecast a pointer to a different kind of pointer, and incrementz the pointer, will the pointer be incremented by the amount accordiing to the typecast or the real pointer?
Example:
Which is the result?
A) ptr is increased by sizeof(long) (ie. 4)
B) ptr is increased by sizeof(char) (ie. 1)
thx in advance, kindly /prog/ warriors
Example:
[b]long[/b]* ptr;
([b]char[/b]*) ++ptr;Which is the result?
A) ptr is increased by sizeof(long) (ie. 4)
B) ptr is increased by sizeof(char) (ie. 1)
thx in advance, kindly /prog/ warriors