Q819
What will be the output of the following C++ code? #include #include #include using namespace std; int main () pair p1(1,2); pair p2(3,4); if(p1 <= p2) cout<<"P1 is small"; else cout<<"P2 is small"; return 0;
A.
P1 is small
AnswerB.
P2 is small
C.
Error
D.
Segmentation fault
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board