types of data: The C++ data types defines a set of values and a set of operations on those value. The computer manipulates various types of data…