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