Q:

We can also specify that we want a reference to the auto-deduced type. Normal initialization rules still apply

0

We can also specify that we want a reference to the auto-deduced type. Normal
initialization rules still apply.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

auto &g = ci; // g is a const int& that is bound to ci
auto &h = 42; // error: we can't bind a plain reference to a literal
const auto &j = 42; // ok: we can bind a const reference to a literal

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now