You can write
void* MyPointer;
or void * MyPointer;
or void *MyPointer;
Thats all fine, but if you write it directly after the type name its more clear that you define a pointer to that type.
But take care, if you create a list its better to put the star before the variable name, as
int* pt1, pt2, pt3;
…creates one pointer and two normal variables.
So you’d write
int *pt1, *pt2, *pt3;