Implicit type conversion: Difference between revisions

m
m (→‎{{header|C}}: add output)
Line 62:
# conversion branch SHORT SHORT INT => LONG LONG COMPL #
# a summary result, using the longest sizeof increasing casting path #
printf((long long compl fmt,llz:=(llr:=(lr:=(i:=(si:=ssi)))),$
$l" was increasingly cast"$,
$" from "g(-0)$, long long compl width, long long real width, long real width,
int width, short int width, short short int width, $" digits"$,
$" and was '"g(-0)"'"l$,ssi ));
 
# conversion branch BITS => []BOOL #
Line 109:
<pre>
1234.0000000000000000000000000000000000000000000000000000000000000+.0000000000000000000000000000000000000000000000000000000000000i
was increasingly cast from 126 from 63 from 28 from 10 from 10 from 10 digits and was '1234'
[]BOOL := LONG BITS := BITS - implicit widening: TTTTFFFFTTTTFFFFTTTTTTTTFFFFFFFF
[]CHAR := LONG BYTES := BYTES - implicit widening: 0123456789ABCDEF0123456789abcdef