answersLogoWhite

0

/* 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

Still curious? Ask our experts.

Chat with our AI personalities

ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
More answers

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).

User Avatar

Wiki User

15y ago
User Avatar

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

User Avatar

Wiki User

14y ago
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