Hello guys, I have so much confusion about typecasting, for example, look at the code below:
using namespace std;
float c = 5.0; int x = 1; cout << x * c; return 0;
it results in 5 not 5.0 but why? As we are performing an operation with a float so the answer should in float only?