Computer Science, asked by MarcusJebasty, 1 year ago

What is Garbage value?????

Answers

Answered by arjunrai11111111111
33
Allocating a variable implies reserving some memory for that variable. In some programming languages (like C) if a variable is allocated but not assigned, it is said to have a "garbage value" , that is, some information that was being held any random piece of the computer's memory.

arjunrai11111111111: nd u
Shrijal1: whts this you both
Shrijal1: now it's enough
Shrijal1: go and inbox each other
Shrijal1: chat there if you want
Shrijal1: I Am getting too much disturb to you both
Shrijal1: from
arjunrai11111111111: ok sorry for disturbances
Shrijal1: OK fine
MarcusJebasty: Ok
Answered by krishna210398
1

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

Similar questions