title: how to see which function is assigned to function pointer at run time..?
body: <pre><code>#include&lt;stdio.h&gt;
  
  int add(int i,int j)
  {
          printf("\n%s\n",__FUNCTION__);
  
          return (i*j);
  }
  
  int (*fp)(int,int);
  
  void main()
  {
          int j=2;
          int i=5;
  
          printf("\n%s\n",__FUNCTION__);
  
          fp=add;
  
          printf("\n%d\n",(*fp)(2,5));
          printf("\n%s\n",*fp);
  }
  </code></pre>