answersLogoWhite

0


Best Answer

/* Example of garbage value */ #include main() { float first = 1234567890123456789.123456789 ; double second=1234567890123456789.123456789 ; long double third = 123456789123456789.123456789; clrscr(); printf(" First=%f",first); printf("\n Second=%lf",second); printf("\n Third=%Lf",third); getch(); return; } output First=1234567939550609410.000000Second=1234567890123456770.000000Third=1234567890123456770.000000

User Avatar

Wiki User

16y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

int main (void) {

puts ("unusable data");

}

Another interpretation is that a garbage value is a variable that has not been initialized, and contents random and unpredictable information (hence garbage).

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

It has nothing to do with the C language, it only means that the variable is not initialized, so its value can be anything.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you describe garbage value in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

When garbage value occur in c?

Garbage data in C, or in any programming language, occurs when a variable is read without having been initialized first.


In c garbage collector?

No.


What is a good picture to describe surplus?

An overflowing garbage can would do it...


What should you do if you get garbage value?

Fix your program.


What is mean by garbage value?

Garbage value or garbage data is programmers' slang for malformed data, typically with no correlation to the intended or expected value set.For example, a function F might be designed to return a student's name, consisting of a string of readable characters, terminated by a null-bytes. When the function returns unintelligible data instead, data which doesn't form a valid name in any of the supported languages, the data returned by F is said to be garbage data.Note that garbage data is not used to describe incorrect data. If, for example, function F returns the name Smith where Miller might have been the correct answer, function F would suffer from an error and the result data would be erroneous or incorrect, but not garbage.


What is basic concept to programming in net c-sharp?

KWYD and GIGO (Know What You're Doing and Garbage-In, Garbage-Out)


Is there any nutritional value in soda?

No. It's garbage.


What is the value of a Peter Forsberg stamp?

None. he is garbage


How garbage is collected?

Yes, GC can be considered as a JVM utility that checks the status of memory objects and cleans up all unused memory references so that, this memory can be used by other objects.


What is the value on a savage gold trigger model 30e in good c?

Between 120-180 dollars in the condition that you describe.


How occur garbage value?

When you use an uninitialised variable, for example.


What does cleverly designed garbage mean?

"Cleverly designed garbage" could refer to an item, a project, a work of art, a plan of action or anything that is being presented as being of value. If someone thinks it has no value, but is merely dressed up or surrounded by fast talk or flashy advertising, they might say, "This is garbage, just cleverly designed garbage."