point out why is this happening cin>>a>>b ; cout<< a+b ; my input is only 20 and no other input but the answer was 28 ? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

point out why is this happening cin>>a>>b ; cout<< a+b ; my input is only 20 and no other input but the answer was 28 ?

22nd May 2018, 9:22 AM
Shivam Kumar
3 ответов
+ 1
I got the same.
22nd May 2018, 9:34 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
second one is the garbage value stored in b you will probably get different answer each time
22nd May 2018, 9:38 AM
‎ ‏‏‎Anonymous Guy
0
lol
22nd May 2018, 9:35 AM
Shivam Kumar