Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

strcmp function

$
0
0

Hello!

I was actually trying to compare a single letter of 2 character arrays using the strcmp function. If the letter was the same, it would print "Awesome!" In this case, it should print "Awesome" along with the lengths because the first letter of "Sneha" and "Sasha" is the same. But instead, it's giving me heaps of errors. I tried googling it up but was unable to understand. The code along with the errors is in image format.

https://www.dropbox.com/s/ipxuts1qto95hs2/Error%21.jpg

Sorry if it's too simple :(


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>