Skip to content
Quiz · Variables and Types · lesson 5 of 9

Quiz — what can be changed

Which line of this program does not compile?

C++
int main() {
    int count = 3;
    const int total = count + 1;
    constexpr int kLimit = 2 * 5;
    int copy = total;
    copy = kLimit;
    total = kLimit;
    return total + copy;
}

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way