title: Macro to Check Value in Range of Interval
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdbool.h&gt;
  #include &lt;ctype.h&gt;
  #define CHECK(x,y,n) (x &gt; 0 &amp;&amp; x &lt; n &amp;&amp; y &gt; 0 &amp;&amp; y &lt; n ? 1 : 0))
  int main(void)
  {
  /*char s[5];
  int i;
  strcpy(s,"abcd");
  i = 0;
  putchar(s[++i]);*/
  int i = CHECK(2,3,10);
      printf("%d",i);
    return 0;
  }
  </code></pre>
  
  <p>I want to declare a macro to check if two values x and y are in the interval but when I try to compile and build, I get these errors from the compiler:</p>
  
  <pre><code>line 4 error: expected ',' or ';' before ';' ')' token
  </code></pre>