+ 4

What is data-types ?

26th Sep 2018, 6:14 PM
Mohit Parekh
Mohit Parekh - avatar
134 Réponses
+ 87
data type is what kind of data you store: string: a sequence of characters "abcde" integer: a number 3,4,2 float:a not complete number 1.2,1.0,2.0,3.333334 more complex data types: list: [1,2,3,4] - a series of data types,you can a list of integers or a list of strings etc... stack,queue.....
26th Sep 2018, 10:36 PM
gil gil
+ 37
Datatype is a particular kind of data item, as defined by the values it can take, the programming language used, or the operations that can be performed on it. In computer science and computer programming, a data type or simply type is an attribute of data which tells the compiler or interpreter how the programmer intends to use the data. Most programming languages support common data types of real, integer and boolean. Data types are declarations for variables. This determines the type and size of data associated with variables. There few datatypes below: Format: Datatypes (size) (sign) 1. Int 2 bytes %d 2. Float 4 bytes %f 3. double 8 %lf 4. short int 2 usually %hd 5. unsigned int at least 2, usually 4 %u 6. long int at least 4, usually 8 %li 7. long long int at least 8 %lli 8. unsigned long int at least 4 %lu 9. unsigned long long int at least 8 %llu 10. signed char 1 %c 11. unsigned char 1 %c 12. long double at least 10, usually 12 or 16 %lf
10th Oct 2019, 4:16 AM
Bits!
+ 17
DATATYPE-datatype is used to define/declare a variable.It specifies the data storage format for the variable.
23rd Sep 2019, 1:00 PM
Himanshu saxena
Himanshu saxena - avatar
+ 9
Depends upon language. Some random text is string, and integer is integer! Fractional values are float or double and true false belong to boolean.
26th Sep 2018, 6:41 PM
Roneel
Roneel - avatar
+ 9
Generally there are three types of data types 1. Primitive Datatype(int,chat,float,double,void) 2. Derived Datatype(array, function, pointers) 3. User Defined Datatype(structure, union, enumeration)
27th Dec 2019, 9:25 AM
Hacker Boy
Hacker Boy - avatar
+ 6
Data-type is simply which type of data you're going to assign to any variable. Like when you assign any whole number to a variable it will be called an integer or int for short. int number = 2; That integer is called a data type of that variable you assigned. Here are some common data types examples: Integers like 0, 1, 2.... Floats like 0.12, 1.5, 3.141 Booleans like True/False String like "Hello world"
19th Nov 2020, 9:14 PM
3rdMOLAR 🐙
3rdMOLAR 🐙 - avatar
+ 5
The type of the value in a variable is called that variables data type. Some Data Types are integer, float, array, string, list, boolean, char etc.
17th Oct 2020, 2:49 PM
Aditya
Aditya - avatar
+ 4
Data type is a kind of identifier to be used in a program such as an integer, float, double, string and character
27th Sep 2019, 7:55 PM
Samuel Mararo
+ 4
Data Type 1. Int 2. Double 3. Char 3. String God Jesus Bless.
12th Jan 2020, 3:17 PM
Imanuel Wicaksono
Imanuel Wicaksono - avatar
+ 3
Data type is nothing but the type of data that u stored into a variable. A data type may be in different types. Such as: Integer :1,2,3.. Float:1.2,2.4.. Complex: (a+ib) Ex: 2+3i Char: 'a','b'...
30th Nov 2019, 4:44 AM
Ravi Gurram
Ravi Gurram - avatar
+ 3
Data types are Int Float Char String
9th Dec 2021, 6:02 AM
Aurang Zaib
Aurang Zaib - avatar
+ 2
All C compilers support a variety of data types. This enables the programmer to select the appropriate data type as per the need of the application. Generally, data is represented using numbers or characters . The numbers may be integers or real. The basic data types are char, int, float, and double.
1st Oct 2019, 3:12 PM
Krishna
+ 2
mohit parekh the term data type refers to the types of values with which a program can work.
5th Jun 2020, 9:06 PM
Timi Toba
Timi Toba - avatar
+ 2
Data types are keywords which tells compiler to store the various types data like int -integer ,char -character ,etc
13th Jul 2020, 3:10 PM
Venkata Krishna Naga Sai
Venkata Krishna Naga Sai - avatar
+ 2
In computer science and computer programming, a data type or simply type is an attribute of data which tells the compiler or interpreter how the programmer intends to use the data. ... A data type provides a set of values from which an expression (i.e. variable, function, etc.) may take its values.
18th Dec 2020, 11:24 AM
Shahab Hadian
Shahab Hadian - avatar
+ 1
C offers two variations of the integer data type-short and long
22nd Sep 2019, 6:04 AM
Himanshu saxena
Himanshu saxena - avatar
+ 1
Basically in C or C++, We use numbers of variable and variable are always known as storage where we can store values or any data which we further implement. So the Data types :: data in the form of : int(integers),float(decimal values),char(character)etc
10th Oct 2019, 5:13 AM
Shubham Sharma
Shubham Sharma - avatar
+ 1
in a simple language data types is describe variable formet
3rd Nov 2019, 6:11 PM
gaurav pandey
gaurav pandey - avatar
+ 1
Int for integer, float for decimal ,double for multi no, chat for alphabet
5th Nov 2019, 6:11 AM
Siddharth Ghode
Siddharth Ghode - avatar
+ 1
Data-type is the type of data that you declare
5th Nov 2019, 12:56 PM
Nirjon Nihal
Nirjon Nihal - avatar