Dating

Which data type stores data?

1 Answer
1 answers

Which data type stores data?

0

A data type is an attribute of data which tells the compiler or interpreter how the programmer intends to use the data. It essentially defines the kind of value a variable may hold.

Here's a breakdown:

  • Primitive Data Types: These are the most basic data types. Common examples include:
    • Integers (whole numbers)
    • Floating-point numbers (numbers with decimal points)
    • Characters (single letters, symbols, etc.)
    • Booleans (true/false values)
  • Composite Data Types: These are created by combining primitive data types or other composite types. Examples include:
    • Arrays (ordered collections of elements of the same data type)
    • Structures (collections of variables of different data types under a single name)
    • Objects (instances of classes, which can contain both data and methods)

Essentially, every variable in a program has a data type associated with it, and that data type dictates how the data is stored and manipulated.

Wrote answer · 3/14/2025
Karma · 40

Related Questions

लोकसंख्ये चे वितरण ...... नकाशा परधतीने केले जाते?
What things do you have?
What is dating?
Drivers, stop the vehicle when the light?
The birds are sitting on the roof?
What was a good tuning for them all?
यथाशक्ती, पाऊसपाणी या सामातजक शब्दाांचा करून प्रकार तलहा (२)?