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() — 1 << endl;↵
↵
}↵
↵
----------------------------------↵
↵
RECIEVED OUTPUT => 4294967295 but not -1
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() — 1 << endl;↵
↵
}↵
↵
----------------------------------↵
↵
RECIEVED OUTPUT => 4294967295 but not -1