0

You are given the noises made by different animals that you can hear in the dark, evaluate each noise to determine which animal?

https://code.sololearn.com/c3GfowiDl09K/?ref=app what is wrong in my code??🙁

7th Feb 2020, 7:27 AM
Muskan Mishra
Muskan Mishra - avatar
1 ответ
+ 7
You can't compare strings and assign a string value to char array like that because array_name is a pointer to 1st element of array & not the actual string value in it. #include <string.h> & then use its strcmp(), strcpy() method or make your own defined function for it. //strcpy() https://www.programiz.com/c-programming/library-function/string.h/strcpy //strcmp() https://www.programiz.com/c-programming/library-function/string.h/strcmp
7th Feb 2020, 8:07 AM
Gaurav Agrawal
Gaurav Agrawal - avatar