Question about the expressions below:
5.66667Code:cout << 17 / 3.0 << endl; cout << 12.0 / 6 << endl;
2
I realize about / and integer but why do I get an double result for the first expression and an integer result for the second...I was thinking about promotion of data types...but now I am confused..
Insight appreciated...