0

What is the logic behind 8 in output

When i enter c=a±b: before the scanf it shows output as 8. But when i enter c=a+b: after the scanf it shows the right right input sum.

19th May 2019, 4:30 AM
Rahul singh
Rahul singh - avatar
1 Respuesta
+ 4
Please show your code. If you print an uninitialized variable before you assigned a value with scanf, its initial (garbage) value will be printed
19th May 2019, 4:48 AM
Anna
Anna - avatar