JavaScript is required

It is not necessary to initialize a reference to real object when it is declared.

A.

TRUE

B.

FALSE

Trả lời:

Đáp án đúng: B


Tham chiếu (reference) trong C++ phải được khởi tạo (initialized) khi khai báo. Nếu không khởi tạo, trình biên dịch sẽ báo lỗi. Do đó, câu trả lời "It is not necessary to initialize a reference to real object when it is declared" là sai.

Câu hỏi liên quan