fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void* DoublePointer(void** arg, int arg_sz)
  5. {
  6. return NULL;
  7. }
  8.  
  9. void* func_ptr = DoublePointer; //works fine
  10.  
  11. int main() {
  12. // your code goes here
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:9:18: error: invalid conversion from 'void* (*)(void**, int)' to 'void*' [-fpermissive]
 void* func_ptr = DoublePointer; //works fine
                  ^
stdout
Standard output is empty