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!
阅读(7) | 评论(0) | 转发(0) |
<script>window._bd_share_config={"common":{"bdsnskey":{},"bdtext":"","bdmini":"2","bdminilist":false,"bdpic":"","bdstyle":"0","bdsize":"16"},"share":{}};with(document)0[(getelementsbytagname('head')[0]||body).appendchild(createelement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new date()/36e5)];</script>
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!
相关热门文章
给主人留下些什么吧!~~
评论热议