1
char nome[100], endereco[100], sexo[100];
printf("Digite seu nome: ");
scanf("%[^\n]s", nome);
printf("Digite seu endereço: ");
scanf("%[^\n]s", endereco);
printf("Qual seu sexo: ");
scanf("%[^\n]s", sexo);
This having error in reading Strings address and sex, when I read the name in the name entry (EX: Lucas Martins), rotates normally, but when it arrives to read address then does not allow to put the address, give error ! For what reason the error ?
try to use the word address without the.
– user83428
If you want to answer your own question, it may be useful for others who have the same doubt.
– user83428