title: Does Function pointer make the program slow?
body: <p>I read about function pointers in C.
  And everyone said that will make my program run slow.
  Is it true?</p>
  
  <p>I made a program to check it.
  And I got the same results on both cases. (measure the time.)</p>
  
  <p>So, is it bad to use function pointer?
  Thanks in advance.</p>
  
  <p>To response for some guys.
  I said 'run slow' for the time that I have compared on a loop.
  like this:</p>
  
  <pre><code>int end = 1000;
  int i = 0;
  
  while (i &lt; end) {
   fp = func;
   fp ();
  }
  </code></pre>
  
  <p>When you execute this, i got the same time if I execute this.</p>
  
  <pre><code>while (i &lt; end) {
   func ();
  }
  </code></pre>
  
  <p>So I think that function pointer have no difference of time
  and it don't make a program run slow as many people said.</p>