title: How C# or any other language NOT Equal to operator performs
body: <p>Hi which one is faster </p>
  
  <pre><code>            int a = 100;
          //First Way
          if (a != 100)
          {
              //Do something when a is not equal to 100
          }
          else
          {
              //Do something when a is equal to 100
          }
  
          //Second Way
          if (a == 100)
          {
              //Do something when a is equal to 100
  
          }
          else
          {
              //Do something when a is not equal to 100
          }
  </code></pre>
  
  <p>I thinks second way is faster , but I am curious to Know how NOT EQUAL (!=) operator is solved . Is it like first it implements equal(==) operation and then the result is negated like !(a==100) ? Any help will be highly appericiated.  </p>