Skip to content

Commit

Permalink
Update variables.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RexJaeschke authored and BillWagner committed Oct 2, 2022
1 parent 592382a commit 6bfda1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion standard/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ The default value of a variable depends on the type of the variable and is deter
- For a variable of a *value_type*, the default value is the same as the value computed by the *value_type*’s default constructor ([§8.3.3](types.md#833-default-constructors)).
- For a variable of a *reference_type*, the default value is `null`.
- In an unsafe context, for a variable of a *pointer_type*, the default value is `null`.
> *Note*: Initialization to default values is typically done by having the memory manager or garbage collector initialize memory to all-bits-zero before it is allocated for use. For this reason, it is convenient to use all-bits-zero to represent the null reference. *end note*
## 9.4 Definite assignment
Expand Down

0 comments on commit 6bfda1e

Please sign in to comment.