Synopsis: | All variables shall be initialized or assigned before being read. |
Language: | C |
Severity Level: | 8 |
Category: | Declarations |
Description: |
Justification Variables need not be explicitly initialized or assigned, as long as they are either initialized or assigned ("set") before being read. Example { int i; int j; if (...) { i = 1; } ... j = i; /* WRONG: "i" may not be initialized */ } |