====== C编程Tips ====== ===== 背景Background ===== - [[.:tips:history | UNIX和C的起源]] - [[.:tips:feature | C的特点]] ===== 词法Lexical ===== - [[.:tips:execution_character_set | 执行字符集(Execution Character Set)]] - [[.:tips:whitespace | 空白字符(Whitespace)]] - [[.:tips:end_of_line | 行结束符(End-of-line)]] - [[.:tips:comment | 注释(Comment)]] - [[.:tips:character_encoding | 不能假设所使用的字符编码(Character encoding)]] - [[.:tips:greedy_rule | 词法分析的贪心法则]] - [[.:tips:identifier | 标识符的限制(Identifier)]] - [[.:tips:integer_constant | 整型常量(Integer constant)]] - [[.:tips:float_constant | 浮点常量(Floating-point constant)]] - [[.:tips:character_constant | 字符常量(Character constant)]] - [[.:tips:string_constant | 字符串常量(String constant)]] - [[.:tips:escape_character | 转义字符(Escape character)]] ===== 预处理Preprocessor ===== - [[.:tips:preprocessor | 预处理概览(Preprocessor)]] - [[.:tips:macro_with_parameters | 参数宏(Macro with parameters)]] - [[.:tips:macro_expansion | 宏扩展(Macro expansion)]] - [[.:tips:predifined_macros | 预定义宏(Predifined macros)]] - [[.:tips:stdc_version | 用预定义宏判断C标准的版本]] - [[.:tips:undef_command | #undef取消定义]] - [[.:tips:macro_stringization | #参数字符串化(Macro stringization)]] - [[.:tips:macro_merging | ##符号合并(Macro merging)]] - [[.:tips:file_inclusion | #include文件包含(File inclusion)]] - [[.:tips:conditional_compliation | 条件编译(Conditional compliation)]] - [[.:tips:line_command | #line指定行号]] - [[.:tips:error_command | #error出错]] ===== 类型Type ===== - [[.:tips:decl_organization | 声明的组织形式]] - [[.:tips:const_with_pointer | const与指针]] - [[.:tips:complicated_type | 复杂类型声明的分析]] - [[.:tips:const_pointer_expr | 常量指针表达式]] - [[.:tips:external_name_in_files | 在多个文件中共享external name的方法]] - [[.:tips:sign_of_char | char类型的符号问题]] - [[.:tips:size_of_pointer | 指针的size]] - [[.:tips:invalid_pointer | 无效指针的特例]] - [[.:tips:array_and_pointer | 数组不转换为指针的场合]] - [[.:tips:byte_order | 字节序(Byte order)]] - [[.:tips:alignment | 对齐限制(Alignment)]] - [[.:tips:struct_layout | 结构体成员的地址分布]] - [[.:tips:struct_pad_size | 结构体的填充与大小]] - [[.:tips:void | void的用法]] - [[.:tips:typedef_varlen_array | typedef与变长数组]] - [[.:tips:type_compatibility | 类型兼容性(Type Compatibility)]] - [[.:tips:type_conversions | 类型转换(Type conversions)]] - [[.:tips:type_conversions_rules | 类型转换规则]] - [[.:tips:casting_conversions|强制转换(Casting conversions)]] - [[.:tips:assignment_conversions|赋值转换(Assignment conversions)]] - [[.:tips:unary_conversions|一元转换(Unary conversions)]] - [[.:tips:binary_conversions|二元转换(Binary conversions)]] - [[.:tips:function_argument_conversions|函数参数转换(Function argument conversions)]] - [[.:tips:use_of_unsigned | 无符号类型的使用建议]] ===== 操作符Operator ===== - [[.:tips:precedence_of_operators | 操作符优先级列表]] - [[.:tips:overflow | 关于溢出(Overflow)]] - [[.:tips:struct_offset | 结构体成员Offset]] - [[.:tips:sizeof | Sizeof的几点事项]] - [[.:tips:binary_subtraction_and_unsigned | 二元减法与无符号数]] - [[.:tips:unary_minus_and_unsigned | 一元减号与无符号数]] - [[.:tips:copy_entire_array | 复制整个数组的一个方法]] - [[.:tips:bitwise_shift | 移位操作符的注意事项]] - [[.:tips:logical_and_or | 逻辑与/或操作符的注意事项]] - [[.:tips:evaluation_order | 求值顺序(Evaluation order)]] - [[.:tips:sequence_point | 序列点(Sequence point)]] ===== 库函数Libraries ===== {{tag>C语言}}