Share
Explore BrainMass

Java Programming : Int Operator

What will be the result of the following assignment statement? Assume b=5 and c=10.
int a=b * (-c + 2) / 2
Answer is -20

Solution Summary

The "int" operator in Java programming is investigated. The solution is detailed and well presented. The response received a rating of "5/5" from the student who originally posted the question.

$2.19