ansi printf questions

Doug Gwyn gwyn at smoke.BRL.MIL
Tue Feb 7 03:21:07 AEST 1989


In article <15188 at oberon.USC.EDU> blarson at skat.usc.edu (Bob Larson) writes:
-One further question:  On a machine with 16 bit short and 32 bit int,
-what should:
-printf("%hd", 65537);
-print?  65537 (ignore the h)?  1 (truncate to short)?  unspecified?

Unspecified.  Do whatever you like.



More information about the Comp.std.c mailing list