1.

What are the different data types present in C++?

Answer»

The 4 data types in C++ are GIVEN below:

  • PRIMITIVE Datatype(BASIC datatype). Example- char, short, int, float, long, double, bool, etc.
  • Derived datatype. Example- array, pointer, etc.
  • Enumeration. Example- enum
  • User-defined data types. Example- structure, class, etc.


Discussion

No Comment Found