Hi, why the same code is having two different outputs (read it further):
ideone gives 32: Is it in Bytes? Can it be possibleCode:#include<iostream> #include<string> using std::cin; using std::cout; using std::string; using std::endl; int main() { string i; if(getline(cin,i)) { cout<<sizeof(i)<<endl; } else cout<<"gone"; return 0; }
Centos gives 8