Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- typedef struct s{
- char *a, *b;
- }st;
- int main(){
- st *x[10];
- for(int i = 0; i < 10; i++)
- x[i]->a = (char *) malloc(sizeof(char) * 10);
- scanf("%s", x[0]->a);
- printf("%s", x[0]->a);
- return 0;
- }
Add Comment
Please, Sign In to add comment