CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 33: CPP: C++ Certified Professional Programmer

What happens when you attempt to compile and run the following code?#include using namespace std;int main (){std::vector v1;v1.push_back(10);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;int main (){std::vector v1;v1.push_back(10);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.

  1. A. compilation fails due to error in line 2
  2. B. compilation fails due to error in line 5
  3. C. exception is thrown during run time
  4. D. code compiles and executes successfully — đáp án hiện tại

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.

Câu hỏi liền kề