c++ - Output always 65535 characters? -
this code.
#include <iostream> using namespace std; int main() { string s; cin >> s; cout << s.length(); return 0; }
why gives output 65535 if increase characters in s. have added samle input here https://ideone.com/c2v8yx
the ideone faq answers:
what size limit source code, input , output?
64 kb.
note limitation has nothing c++ language, or particular implementation of it. limitation ideone (and it's understandable. wouldn't want allow people upload unlimited data fill server). appears behaviour silently truncate input.
Comments
Post a Comment