I wrote the following code.And its giving unexpected results!
#include<iostream>
#include<vector>
using namespace std;
int main(){
vector<int>v;
if(0<(v.size()-1))
cout<<"entered"<<endl;
return 0;
}
if we print v.size() it prints 0. but still it enters the if condition! why so??
Aucun commentaire:
Enregistrer un commentaire