00001 int main() { 00002 double d[] = { 0., 3e1, 4E-1, 3.14159, .0, 0E+3, 1e-3 }; 00003 float f[] = { 0.f, 3e1F, 4E-1f, 3.14159f, .0F, 0E+3f, 1e-3F }; 00004 long double ld[] = { 0.l, 3e1L, 4E-1l, 3.14159l, .0L, 0E+3l, 1e-3L }; 00005 00006 /* C99: hexdecimal floating constant */ 00007 double d2[] = { 0x0p0, 0x.0p0, 0X0.p+1, 0xabc.defP-10, 0XFED.CBAp00 }; 00008 float f2 = 0xabc.defP-10f; 00009 long double ld2 = 0xabc.defP-10l; 00010 }