Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define N 7
- void datos();
- void mostrar();
- typedef char cadenaCaracteres[50];
- cadenaCaracteres nombre[N];
- int main(){
- char A[N];
- datos(A);
- mostrar(A);
- }
- void datos(char A[]){
- printf("Introduce %d animales: ",N);
- for (int i = 0; i < N; i++){
- scanf("%s", &nombre[i]);
- }
- }
- void mostrar(char A[]){
- for (int i = 0; i < N; i++){
- printf("%s",nombre[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment