+ 1

Why it is showing 'No Output' on console window?

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

9th Jun 2019, 11:36 AM
zexu knub
zexu knub - avatar
4 Respostas
+ 6
Strings (=char arrays) need double quotes. Single quotes are only for single characters. Also, you can't compare strings with ==. You need to use strcmp() from <string.h> (or make your own function to compare strings)
9th Jun 2019, 12:55 PM
Anna
Anna - avatar
+ 6
please put your code on code play ground, so that your code can be review easily what exactly do you want to get, I can see in your code you're comparing an input with a function which is not possible you can still do something like this if(opp==sum(a,b){ your code;} yeah that will work fine, but your code is not doing lot of things right
9th Jun 2019, 11:58 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 2
Anna ThankYou it Worked ;)
9th Jun 2019, 2:15 PM
zexu knub
zexu knub - avatar
+ 1
*AsterisK* Not Exactly Comparing function but im checking if the string 'op' is filled with 'sum' the it will call the sum function
9th Jun 2019, 12:10 PM
zexu knub
zexu knub - avatar