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
what is the difference between these statement
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Tim Rentsch, post: 5022206"] Certainly the Standard doesn't exclude the possibility. On most implementations, a definition for EOF such as #define EOF (' ' - (__UCHAR_MAX+1)) (where __UCHAR_MAX has the same value as UCHAR_MAX, but doesn't need <limits.h>) will result in a valid value for EOF that will have the same value as space when converted to 'unsigned char'. A similar construction could produce the same value as that of any other character desired (on most implementations, ie, those where unsigned char promotes to int rather than unsigned int, and the range of int is large enough so overflow does not occur). [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
what is the difference between these statement
Top