fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. const char *name[] = {(char[]){'a',0},(char[]){'b',0},(char[]){'c',0},0};
  5. printf("Char: %c\n", name[0][0]); // This does not work
  6. return 0;
  7. }
Success #stdin #stdout 0.02s 1720KB
stdin
Standard input is empty
stdout
Char: a