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

Câu 53: 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,4,5,1,2,3,5,4};vector v (t,t+10);vector ::iterator it;int m1[] = {1, 3, 2};it = find_end (v.begin(), v.end(), m1, m1+3);if (it != v.end())cout << "Found at position: " << it?…

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,4,5,1,2,3,5,4};vector v (t,t+10);vector ::iterator it;int m1[] = {1, 3, 2};it = find_end (v.begin(), v.end(), m1, m1+3);if (it != v.end())cout << "Found at position: " << it?v.begin() << endl; 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. program outputs: Found at position: 5
  2. B. program outputs: Found at position: 0
  3. C. no output — đáp án hiện tại
  4. D. program outputs: Found at position: 10

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ề