0
int a =10 int b = 2 a*=b cout << a/ ++b What is the output? And how do you derive it? Appreciate the help! Thanks!
Some simple arithmetic Pls Help
9 Antworten
+ 1
a*=b ; will give a the value 20.
20/3 is ans
+ 1
Thanks for the quick reply!
+ 1
yury means that if the whole function is set to return value in int(integer) type then output is 6 and if it is set to return in double(used for fraction number) then output is 6.666... the output is never 20/3 it always the final calculation which is being output
0
Oops haha my bad, just edited, pls look again :)
0
if int main... then answer 6
if double main.. then answer 6.666..
0
+Yurt Tulinoff Can you explain more? I'm not very sure what you meant?
0
just 6.
- 1
+bb doesn't mean anything!!
- 1
Don't worry if u are still wondering what does that mean.... U'll get to know about it.