title: Can I use the not operator in C++ on int values?
body: <p>Strange question, but someone showed me this,
  I was wondering can you use the not ! operator for int in C++? (its strange to me).</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
     int a=5, b=4, c=4, d;
     d = !( a &gt; b &amp;&amp; b &lt;= c) || a &gt; c &amp;&amp; !b;
     cout &lt;&lt; d;
     system ("pause");
     return 0;
  }
  </code></pre>