what does it want me to do?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snhamilton
    New Member
    • Sep 2006
    • 5

    what does it want me to do?

    Given the char variable c , write an expression that is true if and only if c does not contain a blank.
  • pukur123
    New Member
    • Sep 2006
    • 61

    #2
    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.

    Comment

    • D_C
      Contributor
      • Jun 2006
      • 293

      #3
      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.

      Comment

      Working...