Interview Question

What is a data type?

A type determines which values and operations an object supports.

💡 Concept ✅ Quick Revision ⚙ C

Answer

A C data type describes a set of values, their representation requirements, and permitted operations. • Basic types include integer, floating, and void types. • Derived types include arrays, pointers, and functions. • Structure, union, and enumerated types are user-defined type categories.

💡 C Example

int count = 3; double price = 4.5; char grade = 'A';

⚡ Quick Revision

A type determines which values and operations an object supports.