[try Beta version]
Not logged in

 
need help for a normal question

Sep 20, 2011 at 7:42am
What is the result of the expression a / b, if both a and b are int variables, and a's value is 9, and b's value is 5 ?
Sep 20, 2011 at 7:48am
1
Sep 20, 2011 at 7:50am
http://codepad.org/yGfn8fUo
why not try yourself?
Sep 20, 2011 at 8:37am
since u r declaring the values a and b as integers the result will take only integer part not the decimal part.
Ans is 1
Sep 21, 2011 at 6:47am
ty
Sep 21, 2011 at 2:00pm
:-S I think Galik just gave away a quiz question!
Topic archived. No new replies allowed.