Q1. What are the main types of C++ data types? Write data types of each type.
Ans. C++ offers two types of data types:
- Fundamental Data Types: There are five fundamental data types – char, int, float, double and void.
- Derived Data Types: These are four derived data types – class, structure, enumeration, union.