700+ câu trắc nghiệm Ngôn ngữ lập trình C có đáp án - Phần 18

What is the output of the following code? #include using namespace std; int main() { int a = 20; int &n = a; n = a++; a = n++; cout

25/25

What is the output of the following code? #include using namespace std; int main() { int a = 20; int &n = a; n = a++; a = n++; cout << a << "," << n << endl; system("pause"); }

20,21

20,20

21, 22

none of above

Giải thích

Chọn đáp án D