You are given the noises made by different animals that you can hear in the dark, evaluate each noise to determine which animal? | SoloLearn: Learn to code for FREE!

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??🙁

2/7/2020 7:27:57 AM

Muskan Mishra

1 Answer

New Answer

+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