fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void) {
  5. struct some_struct {int some; char value;};
  6. struct some_struct *s = malloc(sizeof(struct some_struct));
  7. s->some = 5;
  8. s->value = 'a';
  9. printf("some = %d, value = %c\n", s->some, s->value);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
some = 5, value = a