Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- #include<string.h>
- typedef struct String
- {
- char nome[10];
- } string;
- int main()
- {
- char nome[5][15];
- string name[5];
- int i;
- for (i = 0; i < 5; i++)
- {
- strcpy(name[i].nome, "Mariana");
- strcpy(nome[i], "Nunes");
- }
- for (i = 0; i < 5; i++)
- {
- printf("%s\n", name[i].nome);
- printf("%s\n", nome[i]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement