fork download
  1. #include <stdio.h>
  2.  
  3. struct Foo { int a; int b; };
  4.  
  5. int main(void) {
  6. struct Foo x = { 10, 20 }, y;
  7. y = x;
  8. printf("y.a = %d, y.b = %d\n", y.a, y.b);
  9. }
  10.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
y.a = 10, y.b = 20