Skip to content

Commit 8bdc432

Browse files
authored
Minor styling fixes
- Preserve new lines - Emphasize list items for readability
1 parent 8e93328 commit 8bdc432

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/c-language/scope-and-visibility.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ An identifier's "visibility" determines the portions of the program in which it
1111

1212
All identifiers except labels have their scope determined by the level at which the declaration occurs. The following rules for each kind of scope govern the visibility of identifiers within a program:
1313

14-
File scope
14+
**File scope**\
1515
The declarator or type specifier for an identifier with file scope appears outside any block or list of parameters and is accessible from any place in the translation unit after its declaration. Identifier names with file scope are often called "global" or "external." The scope of a global identifier begins at the point of its definition or declaration and terminates at the end of the translation unit.
1616

17-
Function scope
17+
**Function scope**\
1818
A label is the only kind of identifier that has function scope. A label is declared implicitly by its use in a statement. Label names must be unique within a function. (For more information about labels and label names, see [The goto and Labeled Statements](../c-language/goto-and-labeled-statements-c.md).)
1919

20-
Block scope
20+
**Block scope**\
2121
The declarator or type specifier for an identifier with block scope appears inside a block or within the list of formal parameter declarations in a function definition. It is visible only from the point of its declaration or definition to the end of the block containing its declaration or definition. Its scope is limited to that block and to any blocks nested in that block and ends at the curly brace that closes the associated block. Such identifiers are sometimes called "local variables."
2222

23-
Function-prototype scope
23+
**Function-prototype scope**\
2424
The declarator or type specifier for an identifier with function-prototype scope appears within the list of parameter declarations in a function prototype (not part of the function declaration). Its scope terminates at the end of the function declarator.
2525

2626
The appropriate declarations for making variables visible in other source files are described in [Storage Classes](../c-language/c-storage-classes.md). However, variables and functions declared at the external level with the **`static`** storage-class specifier are visible only within the source file in which they are defined. All other functions are globally visible.

0 commit comments

Comments
 (0)