fork download
  1. #include <stdio.h>
  2. #include <wchar.h>
  3.  
  4. #define USE_W
  5.  
  6. int main()
  7. {
  8. #ifdef USE_W
  9. const wchar_t *ae_utf16 = L"\x00E6 & ASCII text ae\n";
  10. wprintf(ae_utf16);
  11. #else
  12. const char *ae_utf8 = "\xC3\xA6 & ASCII text ae\n";
  13. printf(ae_utf8);
  14. #endif
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 1848KB
stdin
Standard input is empty
stdout
ae & ASCII text ae