Some C compilers handle void pointer arithmetic as they do char *. It is not valid in C ++.
Regardless, you really should only increment non-empty pointers, since pointer arithmetic is based on knowing the size and alignment of the data type.
source
share