2013年1月5日
摘要: c99中新增加了一个类型定义,就是restrict。 restrict的定义是It can be applied only to pointers, and it indicates that a pointer is the sole initial means of accessing a data object. 我不知道确切应该怎么翻译,大意是restrict只对指针有用,它声明一个指针是唯一初始化访问一个数据对象。 比如,按照书上的例子:int ar[10];int * restrict restar = (int *) malloc(10 * sizeof(int));int * 阅读全文
posted @ 2013-01-05 13:38 老金 阅读(367) 评论(0) 推荐(0) 编辑