Types of C++ data types.

Q1. What are the main types of C++ data types? Write data types of each type.

Ans. C++ offers two types of data types:

  1. Fundamental Data Types: There are five fundamental data types – char, int, float, double and void.
  2. Derived Data Types: These are four derived data types – class, structure, enumeration, union.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: