My $0.02. In general variables are declared as:
type varname;
So ask the questions: What is the type of varname? What is the varname?
char c; // char is the type. c is var name
char* c; // char* is the type. c is the var name
double d; // double is type. d is var name
float f; // float is type. f is var name
double* d; // double* is type. d is var name
float* f; // float* is type. f is var name
Ultimately, BOTH ARE CORRECT. As long as all devs in a team/organization use the same code format style guide, IT DOESN'T MATTER. Just be consistent.