fork download
  1. #include <stdio.h>
  2.  
  3. typedef struct {
  4. int field;
  5. } Test;
  6.  
  7. int main(void) {
  8.  
  9. Test x = {10};
  10.  
  11. void *x_void = &x;
  12.  
  13. printf("%d", ((Test *)x_void)->field);
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
10