0

What is wrong with this code/ what is my mistake here?

https://code.sololearn.com/cJlI4eXo3hXw/?ref=app

14th Jan 2021, 11:47 AM
Winner!
Winner! - avatar
2 Respuestas
+ 4
Line number 9 and 19 are invalid. You need to define a variable as an array at the time of declaration only. Example, char name[100], location[100]; Also, the gets() function is dangerous and therefore deprecated. Use the fgets() function instead https://en.cppreference.com/w/c/io/fgets
14th Jan 2021, 11:51 AM
XXX
XXX - avatar