answersLogoWhite

0

In a computer program, a variable is a named placeholder for a value of type T. This allows for generic problem solutions, which can then be applied to different values V of that variable.

For example, a computer program can be designed to compute the circumference of a circle using the formula 2 * 3.14159 * R, where R is a variable of type float. At runtime, this code can execute for any value of R, and produce the corresponding value of the circumference.

Unlike simple variable as they are common in elementary mathematics, a variable's type T in a computer program does not have to be of a numeric type, and can be arbitrarily complex. For example, one type T1 could be unsigned int, supporting whole (natural) positive numbers, while another type T2 could be a student's record complete with name, birthday and telephone number.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is a variable used in computer gaming?

it depends, if its a desired variable, its a program, but if its undesired, its a glitch


What is the variable in c language program?

A variable is the name for a place in the computer's memory where you store some data.


What is a C variable?

A variable is an entity that may change its value. In a program, the result of the processing statements are stored in the computer's memory.


What is a variable made up of?

A variable is made up of a name (identifier) that represents a value stored in a computer's memory. It consists of a memory location where data can be stored and manipulated in a program. The value assigned to a variable can change during program execution.


What is the derivative of the cross product with respect to a given variable?

The derivative of the cross product with respect to a given variable is a vector that represents how the cross product changes as that variable changes.


Slope measures the of the y-variable with respect to the x-variable?

change


What is variable data?

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.


Is variable representing the value being manipulayed or changed?

A variable is a placeholder that represents a value in computer programming. It can store different values depending on the context and can be manipulated or changed throughout the program execution.


What type of science is recursion?

Recursion is a computer science. Typically computer programers write a specific program to test out a theory of recursion based on the known facts to try to define the variable.


Variable Is a location in the computer's memory where a value can be stored for use by a?

program. Each variable has a name that serves as an identifier, allowing the program to reference and manipulate the stored value. Variables can hold different types of data, such as integers, strings, or booleans, and their values can be changed throughout the program's execution. This flexibility makes variables essential for managing data and controlling the program's behavior.


What is the derivative of the moment of inertia with respect to the variable in question?

The derivative of the moment of inertia with respect to the variable in question is called the rate of change of moment of inertia.


How do you describe a variable?

A variable star is a star whose brightness as seen from Earth that fluctuates.