1987-02-24 10:00:37 +00:00
|
|
|
(int) '\377' = -1
|
1985-02-06 21:06:03 +00:00
|
|
|
(long) -1 = -1
|
|
|
|
(float) 12 = 12.000000
|
|
|
|
(int) 3.14 = 3
|
|
|
|
(int) 32767L = 32767
|
|
|
|
(int) -32768L = -32768
|
1987-02-24 10:00:37 +00:00
|
|
|
(char) 128L = -128
|
|
|
|
(char) 0377 = -1
|
|
|
|
(char) -1 = -1
|
1985-02-06 21:06:03 +00:00
|
|
|
(char) 10000 = 16
|
|
|
|
From character
|
1985-02-15 14:23:34 +00:00
|
|
|
char 127, int 127, unsigned 177, long 127
|
|
|
|
float 127.000000
|
1987-02-24 10:00:37 +00:00
|
|
|
char -1, int -1, unsigned 37777777777, long -1
|
|
|
|
float -1.000000
|
|
|
|
char -1, int -1, unsigned 37777777777, long -1
|
|
|
|
float -1.000000
|
1985-02-06 21:06:03 +00:00
|
|
|
From integer
|
1987-02-24 10:00:37 +00:00
|
|
|
char -64, int -64, unsigned 37777777700, long -64
|
1985-02-15 14:23:34 +00:00
|
|
|
float -64.000000
|
1985-02-06 21:06:03 +00:00
|
|
|
From long
|
1987-02-24 10:00:37 +00:00
|
|
|
char -3, int -3, unsigned 37777777775, long -3
|
1985-02-15 14:23:34 +00:00
|
|
|
float -3.000000
|
1987-12-04 12:53:18 +00:00
|
|
|
Casts from long
|
|
|
|
char -8, int 75000, unsigned short 22370, long 75000
|
1985-02-06 21:06:03 +00:00
|
|
|
From float
|
|
|
|
char 121, int 121, unsigned 171, long 121, float 121.500000
|
|
|
|
char 0, int 0, unsigned 0, long 0, float 0.000100
|
|
|
|
int 32766, unsigned 77776, long 32766, float 32766.000000
|
|
|
|
long 1223432064, float 1223432064.000000
|
|
|
|
a[l] (l==3) -17
|
|
|
|
a[3l] -17
|
1988-01-19 11:45:43 +00:00
|
|
|
(unsigned short) 0x1f010L = 0xf010
|
|
|
|
(short) 0x1f010L = 0xfffff010
|