ansi printf questions
Bob Larson
blarson at skat.usc.edu
Mon Feb 6 17:19:55 AEST 1989
Thanks to all who answered %i is the same as %d in *printf. (They
do differ in *scanf.)
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?
--
Bob Larson Arpa: Blarson at Ecla.Usc.Edu blarson at skat.usc.edu
Uucp: {sdcrdcf,cit-vax}!oberon!skat!blarson
Prime mailing list: info-prime-request%ais1 at ecla.usc.edu
oberon!ais1!info-prime-request
More information about the Comp.std.c
mailing list