Programming is all about inputs and outputs, which means we have to keep track of these somehow. One of the ways to do that is to create variables. Variables are containers that hold data; you go out to the computer's memory and say can I please take this space of your memory and place a variable in order to contain certain data. This is why when programmers depict a variable on the board they often draw a box with a name underneath it and the actual information inside it.
A variable can have several types of information - an integer (whole number with not decimal), float (whole number with decimal), character (one letter), string (lots of characters), and Boolean (variable that can only be either true or false).
No comments:
Post a Comment