Uninitialized variable

ID: uninitialized-variable

In programming, an **uninitialized variable** refers to a variable that has been declared but not assigned a value before it is used in the program. The contents of an uninitialized variable can be unpredictable—meaning they may contain garbage values (random data from memory) or default values, depending on the programming language and its rules. Using an uninitialized variable can lead to undefined behavior, bugs, or unexpected results in a program.

New to topics? Read the docs here!