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: 5021669"] Maybe the code in your program works, but all I have is what you wrote. You have two spaces here: c==' ' rather than one and that won't work. Rule 1 of Usenet: cut and paste, don't re-type! The negation of c == ' ' || c == '\n' || c == '\t' is c != ' ' && c != '\n' && c != '\t' Maybe that is what you meant? Look up "De Morgan's Laws". Of course, you could have written: if (!(c == ' ' || c == '\n' || c == '\t')) ... This is just a guess. In general, full programs are clearer than fragments. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
what is the difference between these statement
Top