DOUBT IN VECTORS

Revision en2, by Akpr, 2022-02-08 20:55:34

Dear community Why the output of below code is not -1 ?

CODE --------------------------

include<bits/stdc++.h>

using namespace std;

int main(){ vector v; cout << v.size() — 1 << endl;

}


RECIEVED OUTPUT => 4294967295 but not -1

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Akpr 2022-02-08 20:55:34 244
en1 English Akpr 2022-02-08 20:54:23 73 Initial revision (published)