Q308
What will be the output of the following C++ code? #include #include #include #include using namespace std; bool mypredicate (int i, int j) return (i == j); int main () vector myvector; for (int i = 1; i :: iterator, int*> mypair; mypair = mismatch (myvector.begin(), myvector.end(), myints); cout << *mypair.first<<' '; cout << *mypair.second << ' '; ++mypair.first; ++mypair.second; return 0;
A.
40
1024
1024
B.
50
1024
Answer1024
C.
20
1024
1024
D.
1024
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board