fork download
  1. #include <stdio.h>
  2. #include<stdlib.h>
  3.  
  4. typedef struct foo{
  5. int x;
  6. int y;
  7. } foo;
  8.  
  9. int main(void) {
  10. // your code goes here
  11. foo * bar = malloc(sizeof(foo));
  12. *bar = (foo) {3,4};
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 2004KB
stdin
Standard input is empty
stdout
Standard output is empty