I want to be better about knowing when I should cast. What are the implicit type conversion rules in C++ when adding, multiplying, etc. For example,
int + fl
Caveat!
The conversions occur from left to right.
Try this:
int i = 3, j = 2; double k = 33; cout << k * j / i << endl; // prints 22 cout << j / i * k << endl; // prints 0