Uninitialized variables

 Uninitialized variables

Unlike some programming languages, C/C++ does not initialize most variables to a given value (such as zero) automatically. Thus when a variable is given a memory address to use to store data, the default value of that variable is whatever (garbage) value happens to already be in that memory address! A variable that has not been given a known value (usually through initialization or assignment) is called an uninitialized variable.

Comments

Popular posts from this blog

Enhancing Internet Speed Through CMD Commands

12 Best Websites to Practice Coding for Beginners

Bitwise Operators in C/C++