fork(8) download
  1. #include <stdio.h>
  2.  
  3. struct xxx {
  4. int a;
  5. };
  6.  
  7. int main(void) {
  8. struct xxx x;
  9. x.a = 123;
  10. void *y = &x;
  11. int b = ((struct {int a;}*)y)->a;
  12. printf("%d\n", b);
  13. return 0;
  14. }
Success #stdin #stdout 0s 1832KB
stdin
Standard input is empty
stdout
123