title: Executing both 'If' as well as 'else' block
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/3031610/stupid-question-regarding-if-elses-simultaneous-execution-in-c-or-c">Stupid Question Regarding If-Else&#39;s Simultaneous Execution in C++ or C</a><br>
    <a href="https://stackoverflow.com/questions/3837858/is-it-possble-to-execute-both-if-and-else-part-of-an-if-else-control-stateme">Is it possble to execute both if  and else part of an if &mdash; else control statement ?</a>  </p>
  </blockquote>
  
  
  
  <p>Hello everyone..
  I had a question in an interview like this which i couldn't answer.
  Consider Following code block.
  Assume necessary header files.</p>
  
  <pre><code>if(.......)
  {
      printf("hello");
  }
  else
  {
      printf("world");
  }
  </code></pre>
  
  <p>without moving/adding any code &amp; without use of additional printing statements bring output as "Hello world"..You have to write the missing condition in if statement..
  is it possible to execute both blocks by some condition?? Please help</p>