answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

a datatype tells the compiler to reserve the memory for ex:-int a; then 2 bytes are reserved for variable a in a 16-bit machine or more.the size of int is 4 bytes in case of pentium 4 processor.

a datatype is a keyword

a keyword is a word whose meaning is known to the compiler.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

A variable's data type typically defines the variable's memory layout and value range or sets. Data types typically also stipulate one possible representation. Generic data types such as "int" or "float" don't offer much more, but specific data types such as "StudentRecord" or "DinoAge" can also provide semantics.

This answer is:
User Avatar

User Avatar

Abdul Rahman saadat

Lvl 2
3y ago

Keywords are the reserved words in a programming language. They cannot be used as a variable name inside of your program. Datatype are keyword which define what type of data a particular variable can hold

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

data type means the type of storage to be used for a perticular variable, such as a char takes 2 bytes of space,integer takes 4 bytes of space,etc..

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

They are entirely different things like apple and cloak.

This answer is:
User Avatar

User Avatar

Wiki User

7y ago

A data type defines the properties associated with a name (a variable, a class or a function). A field is a member variable of a structured data type.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between datatype and keyword in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the best datatype for storing your birthday?

in Unix: the datatype is "Date" in C++: the datatype is "char"


What is the best datatype for storing birthdays?

in Unix: the datatype is "Date" in C++: the datatype is "char"


What is the Difference between override and new keyword in C?

An override is the specialisation of a virtual function. The new keyword instantiates an instance of an object in dynamic memory and returns a reference to that object (or null if the object could be instantiated). Both are used in C++, but not C.


What is the difference between throw and throws in net?

"throw" is the keyword to raise an exception. "throws" is a Java keyword that indicates a specific method can potentially raise a named exception. There is no analog in VB.Net or C#. Perhaps there is a "throws" keyword in J#?


What is the datatype of 3 in c?

integer literal


Is their any scalar datatype in c language?

Float


Is there a datatype string in c plus plus?

Yes.


C program to implement tower of hanoi using array implementation of stack abstract datatype?

stack abstract datatype


Is in is used as a keyword in C language?

Neither "in" nor "is" is a keyword in C.


How many bytes are there for a plus b plus c?

It completely depends the datatype that you have assigned for the variables 'a' , 'b' , and 'c'. Check the compiler that you are using for the size of the datatype in bytes. Add them and thus you will get the answer.


What is the datatype of FILE in C?

FILE is a data-type (a struct, to be precise).


What is meaning of keyword in c language?

'Keyword' is a synonym for 'reserved word', it is not specific to C language.