Practice mode C++

Which of the following is NOT a fundamental (built-in) type in C++?

Correct answer A. std::string

Explanation

bool, wchar_t and double are fundamental types built into the language and need no header. std::string is a class template specialisation, std::basic_string, defined in the standard library header . It behaves much like a built-in type thanks to operator overloading, but it is a library class, not a language keyword.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

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

Links and website addresses are not allowed in comments.