Title: Theory / Unimportant / CS / Programming / C Harbison Steele{ / 04 Declaration+12
Tags: récupéré

Name: declare a name
Definition: Associate an identifier with some C object
Page: 73
Chapter: 4
Index: 1
Example: variable
Example2: function
Example3: type
Example4: type tag

Name: declarator
Definition: A part of the code where variable, functions and types are declarations
Page: 73
Chapter: 4
Index: 1

Name: Type specifiers
Definition: A part of the code where type tags, structures and union components are declared in declarations
Page: 73
Chapter: 4
Index: 1

Name: Translation unit
Definition: A sequence of top-level declaration of functions, variables ...
Page: 74
Chapter: 4
Section: 1
Intuition: C source file

Name: A function
Definition: parameters declarations
Page: 74
Chapter: 4
Section: 1
Definition2: body
Conjdef: Sequence of

Name: The scope of d
Definition: The region of the C program text over which that declaration is visible
Page: 74
Chapter: 4
Section: 2.1
Variables: d a declaration
Index: 1
Kind: table

Question: d occurs at top-level: hence its scope is
Answer: from declaration point to end of the source program file
Page: 74
Chapter: 4
Section: 2.1
Variables: d a declaration
Context: C
Index: 1
Kind: table

Question: d occurs in formal parameter in function definition
its scope is
Answer: from declaration point to end of the function body
Page: 74
Chapter: 4
Section: 2.1
Variables: d a declaration
Index: 1
Kind: table

Question: d occurs in formal parameter in functional prototype
its scope is
Answer: from declaration point to end of the functional prototype
Page: 74
Chapter: 4
Section: 2.1
Variables: d a declaration
Index: 1
Kind: table

Question: d occurs in block
its scope is
Answer: from declaration point to end of the block
Page: 74
Chapter: 4
Section: 2.1
Variables: d a declaration
Index: 1
Kind: table

Question: d occurs in a statement label
The scope of d is
Answer: the entire function body in which it appears
Page: 74
Chapter: 4
Section: 2.1
Variables: d a declaration
Index: 1
Kind: table

Question: d occurs in preprocessor macros
its scope is
Answer: until it is #undef or until end of file
Page: 74
Chapter: 4
Section: 2.1
Variables: d a declaration
Index: 1
Kind: table

Name: A block scope
Definition: A scope which is a block or a function
Page: 74
Chapter: 4
Section: 2.1
Context: C
Index: 1
Kind: table
Name2: A local scope

Name: A prototype scope
Definition: A scope which is a prototype
Page: 74
Chapter: 4
Section: 2.1
Index: 1
Kind: table

Name: A file scope
Definition: A scope which is neither local, prototype nor function
Page: 74
Chapter: 4
Section: 2.1
Context: C
Index: 1
Kind: table

Name: A function scope
Definition: A scope which end at the end of the function
Page: 74
Chapter: 4
Section: 2.1
Index: 1
Kind: table