fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main() {
  5.  
  6. typedef struct _My_struct {
  7. int myInt;
  8. } My_struct;
  9.  
  10. My_struct* tmp = malloc(sizeof(My_struct));
  11.  
  12. tmp->myInt = 5;
  13. printf("Output: %d", tmp->myInt);
  14.  
  15. }
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
Output: 5