+ 1
Given a=3,b=15 temp=a; a=b; b=temp; b=temp/a whats its answer
pls answr the question
6 Answers
+ 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....
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
2 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes
Number of Ones ( C++ ) question!
1 Votes