0
What is wrong with this code/ what is my mistake here?
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