Other languages can automatically assign a variable's data type when the initial data is entered into the variable.Īs we saw in the previous article, we may not need to assign the data type since Kotlin is smart enough to identify it for us. Some programming languages require the programmer to define the data type of a variable before assigning it a value. Therefore, a better definition of a data type is a data storage format that can contain a specific type or range of values according to Tech Terms. Of course, that is rather a circular definition, and also not very helpful.
0 Comments
Leave a Reply. |