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="Ben Bacarisse, post: 5021700"] I don't think K&R have introduced these by the time this exercise is set. No reason not to mention them, of course, but you then have to explain the (unsigned char)c cast: The OP has now posted their full code and they correctly have int c; ... ... c = getchar() ... so the cast is not needed. In fact, if they changed the code so that EOF might to be passed to a ctype function, the cast makes the code wrong! I realise you could not know that c was an int set by getchar() at the time you posted, but there was always a risk such advice could be wrong or confusing. <snip> [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
what is the difference between these statement
Top