Heres what i have so far. I dont think it works though. How do i print the names once they are stored in the array? I tried it and it printed them incorrectly.Code:#include <stdio.h>
int numlives = 5;
int score = 0;
int round = 1;
int main(void) {
char name1[100]= {0};
char name2[100]= {0};
printf("Player one, what is your name?\n");
scanf("%s", name1[100]);
printf("Player two, what is your name?\n");
scanf("%s", name2[100]);
is this how i would print the names??
Code:printf("%s", name1[100]);
printf("%s", name2[100]);