title: Why function pointer address is printing in bool type in c++?
body: <p><strong>From the below code snippet I am getting the address of the function is 1. why ?</strong></p>
  
  <pre><code>#include&lt;iostream&gt;
  using namespace std;
  int  add(int x, int y)
  {
    int z;
    z = x+y;
    cout&lt;&lt;"Ans:"&lt;&lt;z&lt;&lt;endl;
  }
  
  int main()
  {
    int a=10, b= 10;
    int (*func_ptr) (int,int);
    func_ptr  = &amp;add;
    cout&lt;&lt;"The address of function add()is :"&lt;&lt;func_ptr&lt;&lt;endl;
    (*func_ptr) (a,b);
  }
  </code></pre>