fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cstring>
  4.  
  5. int main()
  6. {
  7. char a[]="ะน";
  8. std::cout << std::strlen(a) << "\n\n";
  9. for(unsigned char c: a)
  10. {
  11. std::cout << std::hex << (int)c << '\n';
  12. }
  13. std::cout << "^-- there is a terminating '\\0'.";
  14. }
  15.  
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
2

d0
b9
0
^-- there is a terminating '\0'.