I created a Win32 Console project (disabled "precompiled header" option) with my VS2010.
Then I filled the code as below
#include <stdio.h>
int main (void) {
double d = 0x0.3p10;
printf ("%.f\n", d);
return 0;
}
The compiler shows a syntax error on the line of double d = 0x0.3p10;
.
: error C2059: syntax error : 'bad suffix on number'
: error C2143: syntax error : missing ';' before 'constant'
: error C2146: syntax error : missing ';' before identifier 'p10'
: error C2065: 'p10' : undeclared identifier
Is there something wrong on my project configuration?