This comment is hidden because it contains spoiler information about the solution
The absolute value of positive numbers and zero is that number itself, and the C++ compilers automaticly convert -0 to 0.
I don't understand this. Will anyone please explain how will -abs(0) return as -0. And how to see that the function returned -0 ?
well, -0 is 0. Maybe it doesn't strictly respect the instructions, but the program is correct
yeah
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
The absolute value of positive numbers and zero is that number itself, and the C++ compilers automaticly convert -0 to 0.
I don't understand this. Will anyone please explain how will -abs(0) return as -0. And how to see that the function returned -0 ?
well, -0 is 0. Maybe it doesn't strictly respect the instructions, but the program is correct
yeah