title: In C++ syntax, can the condition of the if else, return a int and still execute the statements within
body: <p>Here is the code which compiles :</p>
  
  <pre><code>int select_object = 0;
  
  if( select_object )  //condition returns an int
  {
  
       printf("Hello");
  
  }
  </code></pre>
  
  <p>if condition returns an int and not a boolean will the hello be printed ? When I tested this it printed hello.</p>
  
  <p>Any idea why even for an int it executes the print statement.</p>
  
  <p>THanks</p>