I declare
char pl1[10], pl2[10];
And I did the following:
printf("Nome do Player1: ");
scanf("%10s", &pl1);
printf("Nome do Player2: ");
scanf("%10s", &pl2);
Thinking he would read only the first 10 characters that the user typ...
asked by
12.06.2015 / 16:31