0

What is the output of following logic

{ int a, b, c; a=3, b=7; c=(1/a)+(1/b); cout<<c; }

8th Mar 2017, 1:14 AM
Sonal Bajaj
Sonal Bajaj - avatar
2 Answers
+ 1
um 0 because you can't do that type of math with int variables.
8th Mar 2017, 1:19 AM
Richard Valles
Richard Valles - avatar
0
Hm... I like this. I'm going to make a code based off this post. I'll link it when I'm done (Only if you can do that with the app).
8th Mar 2017, 1:48 AM
Rain
Rain - avatar