C++: cout << -1/2 evaluates to 0
Python: -1/2 evaluates to -1.

Why is this the case?
I am not sure about Python, but in C++ integer/integer = integer, and therefore in case of -1/2 is -0.5 which is rounded automatically to integer and therefore you get the 0 answer.
In case of Python, maybe the system used the floor function to convert the result into an integer.
Why is -1/2 evaluated to 0 in C++, but -1 in Python?