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);
I have an error reading the Strings address and sex, when I read the name in the name entry (EX: Lucas Martins), it runs normally, but when it arrives to read address then it does not allow to put the address, give error! Why the error?