On my system, if you assign EOF to an unsigned char, it becomes 255. 255 seems to a "non-breaking space" in the extended ascii. Disclaimer: I may be wrong.... :p
I guess what I'm trying to say is...
Type: Posts; User: jwroblewski44
On my system, if you assign EOF to an unsigned char, it becomes 255. 255 seems to a "non-breaking space" in the extended ascii. Disclaimer: I may be wrong.... :p
I guess what I'm trying to say is...
The code posted will compile and run, but if you really are reading in a file, it won't finish running. As you already know, the char data type is not large enough in most cases to hold the EOF value...