What is Garbage value?????
Answers
Answer:
The Garbage value is a random value at an address in the memory of a computer. Whenever a variable is defined without giving any value to it, it contains the leftover values from the previous program. The value of the memory of the computer can be anything unless a definite value is given to it.
Explanation:
If this variable a is only declared but no longer used in the program is called garbage value. For example: int a, b; b=10; printf("%d",b); return 0; Here it's only declared but no longer assigned or initialized. So this is called garbage value.
What is garbage value and garbage collection?
In java, garbage means unreferenced objects. Garbage Collection is process of reclaiming the runtime unused memory automatically. In other words, it is a way to destroy the unused objects.
Garbage collection (GC) is a memory recovery feature built into programming languages such as C# and Java. A GC-enabled programming language includes one or more garbage collectors (GC engines) that automatically free up memory space that has been allocated to objects no longer needed by the program.
What is Garbage value?????
https://brainly.in/question/3033597
What is garbage value in java
https://brainly.in/question/16405898
#SPJ3