Ace Your C++ Skills 2026 – Rock the ‘Thinking in C++’ Challenge!

1 / 565

Which statement is true regarding the sizeof operator?

It calculates the size at run time.

It returns the size of a variable or type in bits.

It can only be used with fundamental data types.

It returns the size of a variable or type in bytes.

The sizeof operator returns the size of a variable or type, not in bits, but in bytes. Option A is incorrect because the sizeof operator is evaluated at compile time, not run time. Option C is incorrect because the sizeof operator can also be used with user-defined data types.

Get further explanation with Examzify DeepDiveBeta
Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy