TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
ASML C Coding Standard
Search

Rule:  6.7.8.aChecked automatically with code checker

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 */
}