Question: why we are declaring variables?
Answer: You need a variable declaration to make clear to the compiler what kind of values are stored there, and how much memory this takes. ... Variable declaration tells the compiler two things: The name of the variable. The type of data the variable will hold.