fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char x[5]={'a','b','c','d','e'};
  5. char (*a)[5] = &x;
  6. printf("%c %c %c %c %c\n", (*a)[0], (*a)[1], (*a)[2], (*a)[3], (*a)[4]);
  7. printf("%zu\n", sizeof(*a));
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
a b c d e
5