💠 WHAT IS DATA TYPE
A computer unlike humans does not recognize the difference between "6789" and "abcd", Because computer has no mind like us. In computer programming a data type is a categorization that decide what a variable or object can carry. Virtually all computer programming languages, including C, C++, JavaScript, and Visual Basic, rely heavily on data types. To secure the proper outcome and an error-free software, programmers must reference and use data types correctly while creating desktop and web-based computer programmes.
💠 TYPES OF DATA TYPE
Integer value (int):-
Int is the extremely used numeric data kind for numbers that don't have a fractional component (-807, 0, 507).Floating (float):-
It's also a numeric data type for storing numbers with fractional components, such as monetary values (808.07, 0.8, 505.00). Please keep in mind that number is a data type that encompasses both int and float types.Characters (char):-
A single letter, numeral, punctuation mark, symbol, or blank space is stored in it.String (str or text):-
String of characters is the most ordinary data type for keep text. A string can accommodate digits and symbols, but it will always be regarded as text. A phone number can be recorded as a string (+1-999-666-2222) or as an integer (9996662222).
Boolean Data type (bool):-
It represents the true and false values. When operating with the boolean data kind, remeber 1 thing in mind that a boolean value can alternatively be represented as 0 (false) or 1 (true) (for true).Enumerated Data Type (enum):-
It has a small number of predetermined special values (sometimes called elements or enumerators) that can be compared and added to an enumerated data type variable. An enumerated type's values can be textual or numerical. The boolean data type is, in fact, a pre-defined enumeration of the true and false values.Array:-
An array often known as a list, is a data type that contains a sequence of elements, usually all of the same type, in a predefined order. The structure of data held by an array is referred to as an array data structure since an array stores numerous items or values. An integer index (0, 1, 2,...) can be used to access each element of an array, and the total number of items in an array represents the array's length.Date:-
It's self-explanatory. It saves dates in the YYYY-MM-DD format (ISO 8601 syntax).Time:-
Time saves a time in the format hh:mm:ss. It can be used to store the time elapsed or the time interval between two occurrences, which could be more than 24 hours, in addition to the time of day. For example, the period since an event occurred could be 48 hours or more (48:00:59).
Other Details:-
Topic | DATA TYPE AND ITS TYPES |
---|---|
COMMUNITY | STEEM INFINITY ZONE |
Location | (OKARA) PAKISTAN |
AURTHOR | @malikusman1 ME |
AURTHOR PICTURE |
💠 MY ACHIEVEMENT 1
https://steemit.com/hive-172186/@malikusman1/achievement-1-by-introduction-malikusman1
THANKS FOR YOUR SUPPORT DEAR SIZ TEAM
Cc.-
@cryptokraze
@siz-official
@vvarishayy
@arie.steem
@suboohi
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Wow nice Post thanks for sharing with us.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit