# Types of Variables

Array

An array is a variable containing multiple values. Any variable may be used as an array. There is no maximum limit to the size of an array, nor any requirement that member variables be indexed or assigned contiguously. Arrays are zero-based: the first element is indexed with the number 0.

source: tldp.org
Boolean

In computer science, the Boolean data type is a data type, having two values (usually denoted true and false), intended to represent the truth values of logic and Boolean algebra. It is named after George Boole, who first defined an algebraic system of logic in the mid 19th century.

Boolean (True or False, 1 Byte)

A built-in Boolean data type was then provided as a predefined enumerated type with values FALSE and TRUE. By definition, all comparisons, logical operations, and conditional statements applied to and/or yielded Boolean values.

Byte (Number, 1 Byte)

The Arduino programming language Reference, organized into Functions, Variable and Constant, and Structure keywords.

source: arduino.cc
Float (Floating Point Numbers - Also Called Double)

In C++, decimal numbers are called floating-point numbers or simply floats. This is because the decimal point can float around from left to right to handle fractional values. Floating-point variables come in two basic flavors in C++.

source: dummies.com
int (Number, 4 Bytes)

Is the size of C “int” 2 bytes or 4 bytes? Does an Integer variable in C occupy 2 bytes or 4 bytes? C allows "bytes" to be something other than 8 bits per "byte".

Integer

In a pure integer model, all the variables are integer, otherwise, it is a mixed-integer model represented as MIP. An integer variable is a specific type of numeric variable in computer programming intended to store a mere whole number.

Long (Number, 8 Bytes)

long: The long data type is a 64-bit two's complement integer. The signed long has a minimum value of -2 63 and a maximum value of 2 63-1. In Java SE 8 and later, you can use the long data type to represent an unsigned 64-bit long, which has a minimum value of 0 and a maximum value of 2 64-1.

Object

@Faaris Cervon : Object variables are the variables which does not create any object but refer to some object .. exmp : Date d1= new Date(); d1 is a object. date d2; d2 is not an object and neither it refers any object But it can hold any object of type d

Resource

Another variable resource is entrepreneurship or the risk of beginning a business and utilizing the other three factors. In addition to explicit costs, variable resources come with opportunity costs. Opportunity cost measures the next best alternative or use of a resource relative to its current use.

source: reference.com
Short (Number, 2 Bytes)

What are the max and min numbers a short type can store in C? ... In a 2-byte number, ... How occur the allocation of variable of type unsigned short and unsigned ...

String

The natural topology on the set of fixed-length strings or variable-length strings is the discrete topology, but the natural topology on the set of infinite strings is the limit topology, viewing the set of infinite strings as the inverse limit of the sets of finite strings.