大神帮忙看看 ((void (*)(void))VIC0ADDRESS)()
((void (*)(void))VIC0ADDRESS)();
其中((void (*)(void))该怎么理解?
[解决办法]
http://topic.csdn.net/u/20120618/06/68dd85e6-0be7-4d83-a303-883793634c11.html?2763
[解决办法]
跟函数指针没啥区别,通常会这样用:
#include <stdio.h>void sayhello(void){ printf("hello godson!\n");}int main(void){ /* normally, we use a function pointer such like this. */ void (*p)(void); unsigned int addr; /* but we can use the address of a function directly. */ addr = sayhello; printf("%d\n", addr); ((void (*)(void))addr)(); /* use function pointer */ p = sayhello; p(); return 0;}