Category Archives: C Programming

Chapter 43: Storage Classes

A storage class is used to set the scope of a variable or function. By knowing the storage class of a variable, we…
Continue reading

Chapter 42: Typedef

The typedef mechanism allows the creation of aliases for other types. It does not create new types. People often use typedef to improve…
Continue reading

Chapter 41: Type Qualifiers

Section 41.1: Volatile variables The volatile keyword tells the compiler that the value of the variable may change at any time as a…
Continue reading

Chapter 40: Implicit and Explicit Conversions

Section 40.1: Integer Conversions in Function Calls Given that the function has a proper prototype, integers are widened for calls to functions according…
Continue reading

Chapter 39: Identifier Scope

Section 39.1: Function Prototype Scope #include  <stdio.h> /* The parameter name, apple, has function prototype scope.            These names are  not  significant  outside  the…
Continue reading

Chapter 38: Inline assembly

Section 38.1: gcc Inline assembly in macros We can put assembly instructions inside a macro and use the macro like you would call…
Continue reading

Chapter 37: Compilation

The C language is traditionally a compiled language (as opposed to interpreted). The C Standard defines translation phases, and the product of applying…
Continue reading

Chapter 36: Aliasing and eective type

Section 36.1: Eective type The effective type of a data object is the last type information that was associated with it, if any.…
Continue reading

Chapter 35: X-macros

X-macros are a preprocessor-based technique for minimizing repetitious code and maintaining data / code correspondences. Multiple distinct macro expansions based on a common…
Continue reading

Chapter 34: Generic selection

Parameter                                                           Details generic-assoc-list       generic-association OR generic-assoc-list , generic-association generic-association type-name : assignment-expression OR default : assignment-expression Section 34.1: Check whether a variable is…
Continue reading