Whenever you perform the pointer arithmetic operation on pointer, the result is always dependent on the pointer type (actually the size of type of the pointer). Here you're incrementing the void pointer after casting it to int pointer. Because of which the pointer will be incremented by sizeof(int) not by the sizeof(char).
Please refer to 'Pointer Arithmetic' section of
this [
^]article.
Have a nice pointer calculations !!!