By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,587 Members | 1,101 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,587 IT Pros & Developers. It's quick & easy.

what does it want me to do?

P: 5
Given the char variable c , write an expression that is true if and only if c does not contain a blank.
Sep 18 '06 #1
Share this Question
Share on Google+
2 Replies

P: 61
One thing you know how to represent a character constant in C and the conditional operators.

Give a look at the above topics and that will solve your problem.
Sep 19 '06 #2

P: 293
Perhaps you should ask for a definition of "blank". It could either be ' ' (the space character), or it could refer to whitespace in general.

In the first case, compare c to ' '. In the second case, you may have to look up ASCII tables, and see where the white space ones are stored. I think they are all near the beginning.
Sep 19 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.