fork download
  1. #include <stdio.h>
  2.  
  3. struct s {
  4. int a[3];};
  5.  
  6. int main(void) {
  7. struct s x = {{10, 20, 30}};
  8. struct s y = {{40, 50, 60}};
  9. //x.a = y.a;
  10. printf("x.a[1] = %d\n", x.a[1]);
  11. x = y;
  12. printf("x.a[1] = %d\n", x.a[1]);
  13. // your code goes here
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
x.a[1] = 20
x.a[1] = 50