Why isn\'t 0f treated as a floating point literal in C++?
0f
#include using namespace std; int main(){ cout << 0f <&l
Here's a 'because' for you: if an int constant with an f suffix was automatically converted to float, then 0x0f would be ambiguous.
int
f
float
0x0f