Computer Science, asked by masterhari31, 5 hours ago

write any 5 data types with examples​

Answers

Answered by GeniusMayank
1

Answer:

REFER TO THE ATTACHMENT

HOPE IT HELPS

MARK ME AS BRAINLIEST :D

Attachments:
Answered by sy063937
0

Answer:

  • Integer.
  • Floating-point number.
  • Character.
  • String.
  • Boolean.

Explanation:

  • Integers are whole numbers represented as binary values. Most programming languages provide a data type called 'integer', often called 'int' for short.

  • In computer science, a float is a data type composed of a number that is not an integer, because it includes a fraction represented in decimal format. ... Some point out that the float data type is used in computer programming when more precision is needed than what integers can provide.

  • Stores strings of letters, numbers, and symbols. Data types CHARACTER ( CHAR ) and CHARACTER VARYING ( VARCHAR ) are collectively referred to as character string types, and the values of character string types are known as character strings.

  • The string data types are CHAR , VARCHAR , BINARY , VARBINARY , BLOB , TEXT , ENUM , and SET . For information about storage requirements of the string data types, see Section 11.7, “Data Type Storage Requirements”.

  • In computer science, the Boolean data type is a data type that has one of two possible values (usually denoted true and false) which is intended to represent the two truth values of logic and Boolean algebra. It is named after George Boole, who first defined an algebraic system of logic in the mid 19th century.

Hope it help you.

Similar questions