just two lines code:
1 void (*funcPtr)();
2 void *funcPtr();
1 means start from "funPtr" -> ")" then <-"(*", oh,good this is a pointer to the function "funPtr", then -> "()"no parameters then <- "void" no return
2 means start from "funPtr" -> "()" no parameters, then <- "void *" oh return pointer
summary:
When you declare or define something,you must understand the process of compile!
阅读(940) | 评论(0) | 转发(0) |