fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. typedef struct {
  5. int a;
  6. int b;
  7. int *c;
  8. char d;
  9. char e[10];
  10. } Tipo;
  11.  
  12. int main(void) {
  13. Tipo obj2 = { .b = 1, .e = "x", .c = malloc(sizeof(int)) };
  14. printf("%s", obj2.e);
  15. }
Success #stdin #stdout 0s 2300KB
stdin
Standard input is empty
stdout
x