Which of the following data types is not a primitive data type in C++? 

  • int 
  • float 
  • string 
  • double
While "int", "float", and "double" are primitive data types in C++, the "string" data type is a part of the C++ Standard Library and is, in fact, a class, not a primitive data type.
Add your answer
Loading...

Leave a comment

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