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