There are two ways to define and use variables of integer type in Bash
declare -ia new variable
- use a variable in an arithmetic expression, without declaring it.
What are the differences between the variables created by the two ways? Especially differences in their purposes, and when to use which?