Ganga 写道:
Can any one explain the function prototype -
( * (void ( * ) ( ) ) 0 ) ( );
typedef void (*function_ptr) ();
// function_ptr is a pointer to functions without parameter and return
value
function_ptr pZero = (function_ptr) 0;
// convert 0 to function_ptr
(*pZero)();
// call the function which is pointed by pZero
// that is, call the function whose address is 0.