Ball Park Code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

13th Dec 2022, 3:48 PM
Wakil Ah Hamidi
Wakil Ah Hamidi - avatar
6 Answers
+ 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.
13th Dec 2022, 4:37 PM
Jayakrishna 🇮🇳
+ 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);
13th Dec 2022, 4:01 PM
Jayakrishna 🇮🇳
+ 2
Your welcome.. Wakil Ahmad Hamidi Try not to change original question next time. It may confuse sometimes other readers...
13th Dec 2022, 4:26 PM
Jayakrishna 🇮🇳
+ 1
Jayakrishna🇮🇳 Thanks a lot I did it
13th Dec 2022, 4:20 PM
Wakil Ah Hamidi
Wakil Ah Hamidi - avatar
+ 1
Jayakrishna🇮🇳 Which changes? Do you mean in the code? I didn’t make any changes there, but improved the code only
13th Dec 2022, 4:29 PM
Wakil Ah Hamidi
Wakil Ah Hamidi - avatar
+ 1
Jayakrishna🇮🇳 Right, got it 👍
13th Dec 2022, 4:39 PM
Wakil Ah Hamidi
Wakil Ah Hamidi - avatar