A variable data is anything that won't necessarily be the same every time you run a computer program. It may come from user input, from a random function, from consulting a database, etc.
Chat with our AI personalities
FILE, struct stat and struct tm are some examples.
There is no such data type. However, when we use user-defined data types of our own type, then that type of data can be stored in a variable. So as a term, you may say that user-defined data type can store any data. As the data-type used in any variable will be depending upon us.
Most programming languages require that you declare all of the variables that you intend to use in a program. A variable declaration is a statement that typically specifies two things about a variable:* The variable's name* The variable's data typePosted by Special:Contributions***EDIT***This can be found on page 56 in "Programming Logic and Design" by Tony Gladdis
1. If its natural or integer numbers- Integer(Int) data type. 2. If it consists of decimal or fraction part- Double or float data type. 3. If it has a single letter or sign- Character(Char) data type. 4. If its got many words(alpha-numerical)- String data type. 5. If the result has to be "true" or "false"- Boolean data type.
This is when you specify the name and type of the variable.Example:int number;The declaration line can also include an instantiation for that variable.Example:int number = 5;When you declare a variable or an object (particularly in OOP programming) , you set aside a chunk of memory space for the data to reside.