+ 2
Ball Park Code
I don’t get the expected result, please check the code and give your suggestions. https://code.sololearn.com/c3VU41ebIebQ/?ref=app
6 Antworten
+ 3
Yes. About code.
Some time it confuses others, what changed made from where to where.. So better to make new post instead. Ok. Not a problem there. Let it be now.
+ 3
order == "Nachos"
Array with string literal can't work as you expecting .. Use strcmp() function instead like
( strcmp ( order, "Nachos") == 0 )
include <string.h> header file.
and there is no need & in scanf("%s", &order);
just write scanf("%s", order);
+ 2
Your welcome.. Wakil Ahmad Hamidi
Try not to change original question next time. It may confuse sometimes other readers...
+ 1
Jayakrishna🇮🇳
Thanks a lot
I did it
+ 1
Jayakrishna🇮🇳
Which changes?
Do you mean in the code?
I didn’t make any changes there, but improved the code only
+ 1
Jayakrishna🇮🇳
Right, got it 👍