From: Michael H. <mic...@gm...> - 2008-09-17 01:52:53
|
> >> But I wonder, why they specified it like that. I guess almost every >> application has to work around that now and print the hex zero manually. > > Maybe because a "0" is a "0" in every common numerical system. > Well, I think the printf functions are mostly used for puting a numerical value (a number) into some sort of string, which in turn is printed to a screen, file, etc. In many cases this output is supposed to be displayed to a human. And IMHO I find it somewhat inconsistent if I change a hex number on my screen being displayed nicely with the 0x prefix, only for zero the prefix disappeares. But I don't want to question the C99 specs, so exuse me nagging ;-) regards, Mike |