关于 struct 声明中 self Referential 的说明

在《The C programming language, second edition》的 section A8.3 中,有这么一段话: A structure may not contain a member of incomplete type. Therefore, it is impossible to declare a structure or union containing an instance of itself. However, besides giving a name to the structure or union type, tags allow definition of self-referential...

 陈十一      2023-06-27    1075字   : 3分钟

关于 C 语言里的 specifier 和 qualifier

在C编程中,“specifier”(指示符)和“qualifier”(限定符)是两个具有不同含义的概念: 指示符(Specifier):在C编...

 陈十一      2023-06-26    584字   : 2分钟

从 ANSI Standart 的角度,解释 const 和 volatile 的区别

当我阅读《The C programming language, second edition》 SECTION A8.2 (page 211) 时看到下面一段话,谈论的是 const 与 volatile 的对象与编译器优化相关的问题。 The const and volatile properties are new with the ANSI Standart. The purpose of const...

 陈十一      2023-06-18    2189字   : 5分钟

理解和区分 C 语言的 structure 和 union

在C语言中,structure(结构体)和union(联合体)是用于组织和存储不同类型数据的方式。它们有相似之处,但也有一些关键的区别。 St...

 陈十一      2023-06-17    856字   : 2分钟

从底层逻辑去理解 C 语言的枚举类型

快速知道枚举 在C语言中,枚举(enumeration)是一种用户自定义的数据类型,用于定义一组具有离散取值的常量。枚举类型可以帮助程序员提高...

 陈十一      2023-06-12    1930字   : 4分钟