Declarations in C++
问题 From what I have understood, declarations/initializations in C++ are statements with 'base type' followed by a comma separated list of declarators. Consider the following declarations: int i = 0, *const p = &i; // Legal, the so-called base type is 'int'. // i is an int while p is a const pointer to an int. int j = 0, const c = 2; // Error: C++ requires a type specifier for all declarations. // Intention was to declare j as an int and c an as const int. int *const p1 = nullptr, i1 = 0; // p1