* refers to the type of function return, which is void * .
When you declare a pointer variable, it is the same as the * tag close to the variable name or variable type:
int *a; int* a;
I personally think the first choice is more understandable, because if you want to define several pointers using a separator, you have to repeat * each time:
int *a, *b;
Using the "close to type" syntax can be misleading in this case, because if you write:
int* a, b;
You declare a pointer to int ( a ) and int ( b ).
So, you will also find this syntax in the returned functions!
Vincenzo Pii Jan 18 2018-12-18T00: 00Z
source share