Ask your own question, for FREE!
Mathematics 16 Online
OpenStudy (anonymous):

What do the following statements do, where m and n are integers? if ((m < 0 ? (m = -m) : m) == 0 || (n < 0 ? (n = -n) : n) == 0) { return m == 0 ? n : n == 0 ? m : 0; }

OpenStudy (anonymous):

return max(abs(m), abs(n))

OpenStudy (anonymous):

hmm yeah I should refactor that part :-P

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!