Why is it important to always initialize variables when you declare them?  Explain your answer.

What will be an ideal response?


If you do not provide an initial value, the variable may contain a meaningless value.  Programmers refer to the meaningless value as garbage because it is the remains of what was last stored in the memory location that the variable now occupies.

Computer Science & Information Technology

You might also like to view...

Data dictionaries may be used to:

What will be an ideal response?

Computer Science & Information Technology

A ________ relationship requires a table called a junction table

Fill in the blank(s) with correct word

Computer Science & Information Technology

How many internal hosts can be translated to one external IP address using Port Address Translation?

A) 8192 B) 16,384 C) 32,768 D) 64,535 E) 65,536

Computer Science & Information Technology

Which of the following kinds of malware is a malicious mobile app that uses a variety of fraudulent schemes to charge unsuspecting users for premium messaging services?

A. trojan horse B. rootkit C. worm D. toll fraud

Computer Science & Information Technology