Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
sizeof C integral types
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Arthur J. O'Dwyer, post: 1696384"] I hereby give you permission to call me by my first name only. ;-) And I have no idea what you mean by that, so I'll leave it for the moment. However, re: Dan's reply: getchar() returns either a 'char' value, cast to 'int', or it returns EOF, which is a negative 'int' value unequal to any 'char' value. Right? My #definitions above provide exactly enough numbers to do this job: the range of 'char', which is signed, goes from -32767 to 32767, and EOF is the 'int' value -32768. So if you were talking only about the "EOF-and-getchar issue," you were wrong, AFAICT. However, since I posted that message I noticed a post elsethread talking about the <ctype.h> functions, which expect to be passed an 'unsigned char' value, cast to 'int'. That complicates things, or ^^^^^^^^ so I thought... but now I'm not so sure about that, either. I think I'm really going to need the C&V here, or you're going to have to show me a piece of code that pokes large holes in my #definitions. -Arthur [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
sizeof C integral types
Top