21st Oct 2020, 4:59 PM
Amal Gil
Amal Gil - avatar
3 Respuestas
+ 2
👆🏾👆🏾👆🏾 yes, ‘&’ is not needed nor is the index ([i]) if you are asking user input for a whole string. also you dont give i a value but use it for you function (method).
21st Oct 2020, 5:41 PM
Roderick Davis
Roderick Davis - avatar
+ 1
scanf("%s",str); Use this
21st Oct 2020, 5:05 PM
Hima
Hima - avatar