Dayrvia
C++

C++ · Copies and references · Practice questions

Try 2 questions on C++ · Copies and references, then read the explanations and review the related concepts.

Practice questions

Choose an answer and move to the next question. Grade the last one to see explanations and review links.

2 questions
Q1 What is a after the assignment?
int a = 6;
int b = a;
b = 1;
Q2 What value does n hold?
int n = 2;
int& r = n;
r += 4;
Original practice questions written for Dayrvia.