Character constants

Ray Curci scri curci at stat.uucp
Fri Mar 3 03:12:57 AEST 1989


Why is therer so much discussion about  character discussions?

A simple printf("%d", sizeof('x') ); reveals that a character constant
(at least both on sun3 and ultrix 11/780) are the same as an int (4 chars).
Isn't it a lot easier to execute a simple test program than to try to
look up this type of information?

curci at stat.fsu.edu



More information about the Comp.lang.c mailing list