fork(4) download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. string a = "foo\n";
  7. string b = "foo";
  8. cout << a.length() << ' ' << b.length();
  9. }
Success #stdin #stdout 0s 4276KB
stdin
Standard input is empty
stdout
4 3