int a ;
When declaring a variable, memory is allocated. But this variable is not assigned, which means that the variable a not initialized. If this variable a declared, but is no longer used in the program, it is called the garbage value . For example:
int a, b; b=10; printf("%d",b); return 0;
Here it is declared, but no longer assigned or initialized. Thus, this is called the garbage value .
sowmiya
source share