5.2k views
4 votes
A variable must have its type declared but it is not required to be initialized prior to first use.

a) TRUE

b) FALSE

User JanLikar
by
5.2k points

1 Answer

6 votes

Answer:

a) TRUE.

Step-by-step explanation:

The statement is true.We can declare a variable but not initialize it there we can initialize it afterwards when we want to use.On declaring the variable type it tells the compiler to reserve the memory according to the size required for the data type.When we initialize the memory is allocated to that variable.

User Jleach
by
5.2k points