fork download
  1. #include <stdio.h>
  2. struct S {
  3. char *p;
  4. };
  5. int main(void) {
  6. char *p = "abcd";
  7. struct S S[2];
  8. int i;
  9. for(i = 0; i < 2; i++)
  10. S[i].p = p + i;
  11. printf("%c",S[1].p[0]);
  12. return 0;
  13. }
Success #stdin #stdout 0s 4336KB
stdin
Standard input is empty
stdout
b