Câu 41: CPP: C++ Certified Professional Programmer
What happens when you attempt to compile and run the following code?#include #include #include #include using namespace std;template void print(T start, T end){while (start != end)cout v1(t, t+5);deque d1(v1.rbegin(), v1.rend());d1.push_back("zero");print(d1[0].rbegin(),d1[0].rend());return 0;}
Nội dung câu hỏi
What happens when you attempt to compile and run the following code?#include #include #include #include using namespace std;template void print(T start, T end){while (start != end)cout v1(t, t+5);deque d1(v1.rbegin(), v1.rend());d1.push_back("zero");print(d1[0].rbegin(),d1[0].rend());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 outputs: orez
- B. program outputs: evif — đáp án hiện tại
- C. compilation error
- D. program outputs: five
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.