What is the difference between (int)b and int(b)?
Is it possible that the values will ever be different for int(b) and (int)b? If not, then what is the difference between both?
Can someone please kindly clarify?
My code:
cout << "The expression is " << a + b << endl;
cout << "The expression is " << a + int(b) << endl;
cout << "The expression is " << a + (int)b << endl;