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