fork(2) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4.  
  5.  
  6. int main()
  7. {
  8. std::string a = "123123\0shai\0";
  9. std::cout << a.length();
  10. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
6