Commit 39184b47 by phkarl

Upload New File

parent 779a6dcd
Showing with 20 additions and 0 deletions
#include <stdio.h>
#include <string.h>
int main(){
char array_of_strings[10][40];
char string[40]
printf("Enter 10 names...\n");
for(i = 0; i < 10; i++){
printf("Enter 10 names...\n");
printf("Enter String %d\n", &i);
scanf("%s", string[]);
strcpy(array_of_strings[i], string);
}
for(i = 0; i < 10; i++){
printf("%s\n", array_of_strings[i]);
}
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment