Câu 66: CPP: C++ Certified Professional Programmer
What happens when you attempt to compile and run the following code?#include using namespace std;template void f(A a){cout (a);return 0;}
Nội dung câu hỏi
What happens when you attempt to compile and run the following code?#include using namespace std;template void f(A a){cout (a);return 0;}
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. program displays: 1 — đáp án hiện tại
- B. program displays: 2
- C. compilation error
- D. runtime exception
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.