title: How to create a Callback function by Using C/C++
body: <p>does C\C++ Support a mechanism for callback function ? and how to create it ?
  I've written several code, to create callback function in C++ but it failed ..</p>
  
  <pre><code>    #include&lt;iostream&gt;
      using namespace std;
  
      void callee()
      {
           printf("callee\n"); 
           printf("calleeeeeeeeee\n"); 
      }
  
      void callback(void* func)
      {
           printf("callback\n");     
      }
  
      int main()
      {
          void (*call)(void*);
          void (*call2)(void);
          call2 = &amp;callee;
          call = &amp;callback;
          call((void*)call2);    
          getchar();
          return 0;    
      }
  </code></pre>