fork download
  1. #include <stdio.h>
  2. #include <stddef.h>
  3.  
  4. #define _WC(c) (L##c)
  5.  
  6. wchar_t my_chars[] = {
  7. _WC('f'),
  8. _WC('o'),
  9. _WC('o'),
  10. _WC('ア'),
  11. NULL,
  12. };
  13.  
  14. int main(void) {
  15. // wprintf(L"foo: %ls\n", my_chars);
  16. printf("last: 0x%x\n", my_chars[3]);
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
last: 0x30a2