fork download
  1. #include <stdio.h>
  2.  
  3. //struct A;
  4.  
  5. typedef void (*func)(struct A *pA);
  6.  
  7. struct A
  8. {
  9. func f;
  10. int somthing;
  11. };
  12.  
  13.  
  14. int main() {
  15. struct A nameA = {NULL, 10};
  16. printf("Hello, world! %d\n", nameA.somthing);
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5332KB
stdin
Standard input is empty
stdout
Hello, world! 10