title: How do I call function(void) in gdb
body: <p>I am a complete beginner to reverse engg.
  In recent times I have been going through gdb and how to debug the programss.</p>
  <p>I have a big doubt bear me if it is a simple one</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int flag(void){
      puts(&quot;okay you got this&quot;);
  }
  
  int main(void){
      puts(&quot;nope try again&quot;);
  }
  </code></pre>
  <p>So i compiled this this program successfully, When I try run this program it gives me main function output</p>
  <pre><code>nope try again
  </code></pre>
  <p>so now how do i call the flag function to give the &quot;okay you got this&quot; output in gdb <strong>I tried my best evrything and surfed blogs to get the answer but i endded up in failure</strong> Hope ill get the solution and kindly suggest me what am I missing and what i needed to know on how does this works</p>