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

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

What happens when you attempt to compile and run the following code?#include #include #include using namespace std;int main () {int t[] = {1,2,3,2,3,5,1,2,7,3,2,1,10, 4,4,5};vector v (t,t+15);int number = count(v.begin(), v.end(), 2);cout<< number<<endl;return 0;}Program outputs:

Nội dung câu hỏi

What happens when you attempt to compile and run the following code?#include #include #include using namespace std;int main () {int t[] = {1,2,3,2,3,5,1,2,7,3,2,1,10, 4,4,5};vector v (t,t+15);int number = count(v.begin(), v.end(), 2);cout<< number<<endl;return 0;}Program outputs:

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. 4 — đáp án hiện tại
  2. B. 3
  3. C. 2
  4. D. 0
  5. E. compilation error

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ề