chenggou[沟槽的C++] 摸鱼的进来做题(const/auto) 中发帖

int main() {
int const a = 5;
int const *b = &a;

int const *const c = &a;

int const *const *const d = &c;

int const *const *const &e = d;

int const &ref2 = 42; // true or false ?
int &&ref3 = 42;

auto const t = b; // type ?
auto tt = a; // type ?
auto ttt = c; // type ?
auto tttt = d; // type ?
auto ttttt = e; // type ?
auto tttttt = ref2...