Next: , Previous: Blocks, Up: Writing style



4.2 Declarations

4.2.1 Alignment

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();'

4.2.2 Declarations