0
vector<int> a(10);
vector<int> b(20);

if ((a.size() - b.size()) > 1) {
    cout << "yes";
}

Can anyone explain why this code prints "yes". If I try storing a.size() - b.size() in an int variable, it is working as expected.

Pankaj
  • 21
  • 2

0 Answers0