answersLogoWhite

0


Best Answer

Let's look at an example. int a = 1; Here our variable is 'a' which is of type 'int'

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between Variable and Data Type of Variable?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between value type parameters and reference type parameters?

When a variable is passed by value, the function receives a copy of the variable. When a variable is passed by reference, the function receives a reference, or pointer, to the original data.


What is the difference between data and variable?

data type refers to the kind of value that is held by a particular variable. For ex: an int variable contains integer value, a string holds a alpha numeric value etc. variable refers to the name of a value using which we can refer to this value. Ex: public int age = 28; here int is the data type and age is the variable.


What is the difference between Declaration and Assignment?

Declaration is basically defining data type and length and assignment is to assign the value. Below is the declaration -- var a integer /* this means we are declaring a variable a as integer data type */ a= 5 /* this is assignment,we are assigning 5 to variable a */


What is the difference between the structure tag and structure variable?

The structure tag is a type. The structure variable is an instance of that type.


Type of data communication?

What is the difference between data communication and telecommunication ?


What defines a data type?

the type of data which we store in a variable.. example: int a=10; /*here a is variable (data) which is of type int and stores a value 10.*/


What is the difference between fundamental and derived data types?

fundamental data type makes up the derived data type


Which data type can store any data?

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.


What is the difference between variables and factors in scientific terminology?

A factor is a type of variable. Usually, "factor" is another word for the independent variable. But it can be any variable that is a part of or contributes or leads to another variable.


What is a valid variable data type?

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.


What is the difference between structure and pointer?

A structure is a collection of primitives or other structures. A pointer is a memory address. Comparison of the two is like comparing bowling balls to cinder blocks. You can say that a structure defines the layout of the data, while a pointer points to data that is a particular structure.


What type of data can line graphs display?

Line graphs are used to display data to show how one variable (the Responding variable) changes in response to another variable (the Manipulated variable).