this will case the long type varible "test"'s address assign into
to this function pointer.
but the last one line. I really don't know too much about.
post this mail just hope some one know about this .
will stand out and make a big laugh to me. ( what a stupid answer )
cause I wana know this too.
thankx.
《 在 incomi...@bbs.cis.nctu.edu.tw (只是一個人) 的大作中提到: 》
: void main()
: {
: unsigned long test=0x0;
: void (*theKernel)(int a,int b)=(void(*)(int,int))test;
: theKernel(0,25);
: }
: 有沒有人可以解釋一下這是什麼意思....
: 不要跟我說 theKernel 是一個函式指標
: compile 完
: 執行了之後 會 core dump 在 linux 的環境下
--
[1;33mMain [1;37m( ICQ:2883897 ) [1;33m{ null }
[0m
[m [1;37m※ 來源:‧蛋捲廣場 bbs.tku.edu.tw‧[FROM: 211.23.191.178] [m