title: Pointer to a procedure
body: <p>Does it possible to invoke a procedure via pointer? I haven't found anything about it on the internet, but the following experimental code compiles without warnings.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;ctime&gt;
  
  using namespace std;
  
  void PrintCurrentClock()
  {
      cout&lt;&lt;clock()&lt;&lt;endl;
  }
  
  void PrintCurrentTimeStamp()
  {
      cout&lt;&lt;time(0)&lt;&lt;endl;
  }
  
  
  int main()
  {
      void* pF = PrintCurrentClock;
  
      pF;
  
      pF = PrintCurrentTimeStamp;
  
      pF;
  
      system("Pause");
      return 0;
  }
  </code></pre>
  
  <p>The output is empty, as if the <code>*pF</code> was somewhat "transparent".</p>