token in c and cpp (C preprocessor)

Posted 自強不息 厚德載物

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了token in c and cpp (C preprocessor)相关的知识,希望对你有一定的参考价值。

C tokens are of six types, They are,

  • keyword
  • identifier
  • constant
  • string-literal
  • punctuator

preprocessing-token:

  • head-name
  • identifer
  • pp-number
  • character-constant
  • string-literal
  • punctuator
  • each non-white-space character that cannot be one of the above

reference :
ISO/IEC 9899:201x
N1570
C11

[To be continued]

以上是关于token in c and cpp (C preprocessor)的主要内容,如果未能解决你的问题,请参考以下文章

c_cpp C ++中的Bulls and Cows游戏

c_cpp CPP-Datatypes_Size_and_Range

c_cpp 所有子阵列的按位AND

c_cpp recursive_pow_and_fact

c_cpp worst_practices_in_gcc.c

c_cpp pass_function_in_the_class.cpp