title: core dumped in assert
body: <p>Hi when i try to use assert function in my program it dump the code. Can anyone tell me what is the problem with my code.</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;assert.h&gt;
  void print_number(int myConfig) {
      assert (myConfig &gt; 20);
      printf(&quot;\nConfig value is : %d&quot;,myConfig);
  }
  
  int main ()
  {
  int configArr[]={21,27,15};
  for(int i=0;i&lt;=2;i++)
    print_number (configArr[i]);
  return 0;
  }
  </code></pre>
  <p><strong>Output :</strong></p>
  <blockquote>
  <pre><code>Config value is : 21
  Config value is : 27Assertion failed: myConfig &gt; 20, file assert.cpp, line 4
  Abort (core dumped)
  </code></pre>
  </blockquote>