Pointers and references are part of the type, and MUST be put near the type, not near the variable.
const char* p; // not `const char *p;' std::string& s; // not `std::string &s;' void* magic (); // not `void *magic();'
Hint: Your compiler can help you to detect uninitialized local variables.