fork(1) download
  1. #include <wchar.h>
  2. #include <stdio.h>
  3.  
  4. int main(void) {
  5. char* s = "Hello";
  6. printf("%s\n", s);
  7. wprintf((const wchar_t*) s);
  8. printf("\n--------\n");
  9. const wchar_t* ws = (const wchar_t*) s;
  10. for (int i = 0; i < 5; i++) {
  11. printf("%d ", ws[i]);
  12. }
  13. printf("\n--------\n");
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
Hello

--------
1819043144 755630191 757935405 2960685 2122789 
--------