Search:

Type: Posts; User: jwroblewski44

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    2,129

    On my system, if you assign EOF to an unsigned...

    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...
  2. Replies
    9
    Views
    2,129

    The code posted will compile and run, but if you...

    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...
Results 1 to 2 of 2