DOUBT IN VECTORS
Difference between en1 and en2, changed 244 character(s)
Dear community ↵
Why the output of below code is not -1 ?


CODE --------------------------↵

#include<bits/stdc++.h>↵
using namespace std;↵

 ↵
int main(){↵
 vector<int> v;↵
cout << v.size() &mdash; 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)