fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. auto hu8 = u8"Hello, World!";
  6. auto hu = u"Hello, World!";
  7. auto hU = U"Hello, World!";
  8. auto hw = L"Hello, World!";
  9.  
  10. int main()
  11. {
  12. cout << hu8 << endl;
  13. cout << hu << endl;
  14. cout << hU << endl;
  15. cout << hw << endl;
  16. }
  17.  
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
Hello, World!
0x2b011084eb60
0x2b011084eb28
0x2b011084eb28