Q2. Explain fundamental data types and their purpose.
Ans. There are five atomic (fundamental) data types in C++ : char, int, float,double and void. All other data types in C++ are based upon one of these atomic types. The size and range of these data types vary with each processor type and with the implementation of the C++ compiler. A character is generally 1 byte and an integer is often 2 bytes.