Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- typedef struct myType{
- int x;
- int y;
- } miTipo;
- int main(void){
- miTipo *z = NULL;
- z = calloc(1,sizeof(miTipo));
- z -> x = 10;
- (*z).y = 15;
- printf("primero: %i, segundo: %i\n", z->x , (*z).y);
- free(z);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement