+ 1
Given a=3,b=15 temp=a; a=b; b=temp; b=temp/a whats its answer
pls answr the question
6 Respostas
+ 2
First, What do you think the answer is?
+ 2
a = 3, b = 15
temp = a (3)
a = b (15)
b = temp (3)
b = temp/a (3/15)
Answer is 0
assuming a and b are int and int cannot display double value 0.2 (actual calculation)
+ 1
5 just guess bro..
coz i hv jst strted learing c++ ..concept is not clear
0
Strange :D
Even I thought it was 5 but it turns out to be
3/15 in the end
0
a=3 b=15
temp=3
a=15
b=3
b=3/3=1
0
it's 0.2 really, just messing....