0

Why it's gets function is not working ? ( 8th line )

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

31st Mar 2022, 10:19 AM
Abhay mishra
Abhay mishra - avatar
2 odpowiedzi
+ 1
You are not given size for char array.. So it's empty.. Give the size. And use fgets() instead of gets(), it is deprecated. See warnings.. Use int main() instead of void main()..
31st Mar 2022, 10:26 AM
Jayakrishna 🇮🇳