As stated in the previous post, variables also must have a specific data type associated with it. And only values with the same data type can be stored into the variable. These data type are standards set by the IEEE, Institute for Electrical and Electronics Engineers.
there are 4 basic data types:
- int
Example : 123
- float
Example:12.3
- double
Example:3.141592654
- char
Example: 'A', 'e'
If more than 1 characters are wished be stored into a variable, we call them as character arrays, or strings. This will be discussed later on.
No comments:
Post a Comment