-3

I'm trying to create a function which should return true or false if a given number complies with the given conditions. Anyway, it doesn't seem to work. Here's the code:

bool conditions(int i) {                                            
    return (i != '\n' & i != ' ' & i != '\t' & i != EOF) ? true : false;
}

Any help will be really appreciated!

LollolCat
  • 23
  • 7

1 Answers1

0

You have to use stdbool.h library (#include <stdbool.h>) or define type yourself. answer to question

Kawson
  • 138
  • 1
  • 10
  • 5
    A "Vote to close as duplicate" is more appropriate. – Robert Harvey May 21 '21 at 14:02
  • I can't find button to close as duplicate (even tried search for it in stack forum). @SergeyA I though that helps if I linked post where everyone can find answer. That's why you downvote me? Hm... – Kawson May 21 '21 at 14:30
  • 1
    @Kawson The _close_ button is a gray little text (not even looking like a button) under the question. If you don't have rep to vote to close you can make a comment: "Does _link to the duplicate_ answer your question?" – Ted Lyngmo May 21 '21 at 14:42
  • 1
    @TedLyngmo okey, I don't have this option yet, will remember next time – Kawson May 21 '21 at 14:44