Question:
what is a data type?
kathappening
2006-03-27 14:01:27 UTC
what is a data type?
Six answers:
anonymous
2006-03-27 14:03:45 UTC
Data type is a type of data in a type system in computer programming. Types of data in programming languages include primitive types, tuples, records, algebraic data types, abstract data types, reference types, classes, and nodes of data structures. A data type describes representation, interpretation and structure of values manipulated by algorithms or objects stored in computer memory or other storage device. The type system uses data type information to check correctness of computer programs that access or manipulate the data.
Duane G
2006-03-27 14:08:38 UTC
A data type is simply the range of data a certain variable falls in.



Such as

an integer is any whole number between -32767 to 32768 (I'm not 100% on the range)

so the data type for 13 is int per se



a float is and number with a decimal such as 123.854



a char is any alpha numeric (Letter or number or some special chars)



a bool (in c++) is boolean so it can only be true or false
bido411
2006-03-27 16:05:10 UTC
A data Type is an expression in programming to describe the type of data u can use

any programming language is based on the concept of data type and there are different data types such as integer and floating and double for numeric data ,

string,var char,character for text

date , time

object and so on .....

finally the data type is the way u can describe and determine what kind of data you will used in your program
TimW
2006-03-27 14:04:54 UTC
There are different data types:



numeric

text

date



are the three most general data types. Different applications may further define number to one with decimal and various precisions.
anonymous
2006-03-27 17:25:00 UTC
A datatype in programming means an area of memory allocated to store the data. E.g. integer is allocated 8bytes of memory, Char is allocted 1 byte and so on.



Go to the link below:



http://linuxgazette.net/issue85/ortiz.html



It shows graphically what I am trying to tell you and it gives a list of most commonly used data types and how much space gets allocated for each



hope this helps
xSaintMJCx
2006-03-27 14:03:34 UTC
Type of file / Type of file encryption, can you be a little more specific?


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...