随笔分类 -  ISO/IEC 9899:201x C11 standard

摘要:1 A12.3 Macro Definition and Expansion A control line of the form \ define identifier token sequence causes the preprocessor to replace subsequent ins 阅读全文
posted @ 2018-05-23 17:45 wangchangruei 阅读(329) 评论(0) 推荐(0)
摘要:formal parameter : [3.16] object declared as part of a function declaration or definition that acquires a value on entry to the function, Example : in 阅读全文
posted @ 2018-05-14 17:30 wangchangruei 阅读(354) 评论(0) 推荐(0)
摘要:What's pasting in above block ? It is often useful to merge two tokens into one while expanding macros. This is called token pasting or token concaten 阅读全文
posted @ 2018-05-12 18:21 wangchangruei 阅读(1206) 评论(0) 推荐(0)
摘要:C tokens are of six types, They are, keyword identifier constant string literal punctuator preprocessing token: head name identifer pp number characte 阅读全文
posted @ 2018-05-12 18:04 wangchangruei 阅读(288) 评论(0) 推荐(0)
摘要:declaration : 告訴 compiler 如何解讀 identifier, 及接受這個 reference of identifier, 也就是類似 extern int a; translation unit 沒有定義 a, 所以先接受有 a,先 compile, link 階段再連結。 阅读全文
posted @ 2017-03-26 19:04 wangchangruei 阅读(238) 评论(0) 推荐(0)
摘要:static struct abc : declaration specifier \ b : declarator struct abc : type specifier 阅读全文
posted @ 2017-03-26 18:47 wangchangruei 阅读(370) 评论(0) 推荐(0)
摘要:struct tag { member list }; union tag { member list }; enum tag { member list }; test1 是 union tag. 阅读全文
posted @ 2017-03-19 19:25 wangchangruei 阅读(286) 评论(0) 推荐(0)