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!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuestas
+ 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