0

Why the code is giving 1 as output on inputting any random letter???

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

3rd May 2021, 4:30 PM
Vatsav
2 Answers
+ 1
Hey Vatsav again, Values of y and z are equal so " equal to " (==) is true i.e. 1 which assigns to x and prints 1. I think you don't need getch() here ! //Complete your C Course you will understand well ! //Focus on only one language
3rd May 2021, 4:51 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
0
👍😊😊
3rd May 2021, 4:52 PM
Vatsav