Search⌘ K
AI Features

Test Yourself: Three-way Comparison Operator

Evaluate your grasp of the three-way comparison operator introduced in C++20 through this self-test. Gain confidence in using this feature to perform efficient and clear comparisons in your code.

We'll cover the following...

Choose the possible correct answer(s).

1.

By defaulting the operator <=>, the compiler auto-generates the ______ comparison operators.

A.

two

B.

three

C.

six


1 / 3

I hope ...