title: Calling a function multiple times but it prints only once
body: <p>I'm running the following code:</p>
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  string response(bool isMale, bool isTall)
  {
      if (isMale &amp;&amp; isTall) {
          cout &lt;&lt; &quot;MALE AND TALL&quot; &lt;&lt; endl;
      }
      else if (isMale || isTall) {
          cout &lt;&lt; &quot;MALE OR NOT TALL&quot; &lt;&lt; endl;
      }
      else {
          cout &lt;&lt; &quot;ELSE&quot; &lt;&lt; endl;
      }
  }
  
  int main()
  {
  
      response(true, true);
      response(false, true);
      response(false, false);
  
      return 0;
  }
  </code></pre>
  <p>the output is the following:</p>
  <pre><code>MALE AND TALL
  
  Process returned -1073740940 (0xC0000374)   execution time : 1.460 s
  Press any key to continue.
  </code></pre>
  <p>Why isn't the output?:</p>
  <pre><code>MALE AND TALL
  
  MALE OR NOT TALL
  
  ELSE
  </code></pre>
  <p>A different forum post hinted at a global value not being reset. I don't really know what to make of that.</p>
  <p>I would appreciate any help</p>