printfの書式指定

borland C/C++は、未だにきちんと実装していない。
サンプル

printf("%#x\n", 0);
printf("%#.2x\n", 12);
printf("%f\n", 1.1e100);

MSVC8の結果

0
0x0c
11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000

gcc(cygwin)の結果

0
0x0c
11000000000000000369198691429932005607143080000000000000000000000000000000000000000000000000000000000.000000

bccの結果

0x0
0xc
1.100000000000000037000000000000000000000e+100