title: assert in C program
body: <p>I got an error regarding assert</p>
  
  <p>My program uses assert with an argument 0, for default case.</p>
  
  <pre><code>switch(choice)
  {
      case OP_1:
          func_1();
          break;
  
      case OP_2:
          func_2();
          break;
  
      default:
          assert(0);
   }
  </code></pre>
  
  <p>how does assert work ?
  Also it gives me error: undefined reference to assert.
  I must specify that, program uses</p>
  
  <pre><code>#include &lt;assert.h&gt;
  </code></pre>
  
  <p>Where am I going wrong ?</p>