All challenges
Multiple ChoiceBeginner 45s

string SSO

Small String Optimization (SSO) in `std::string` means:
Options
  1. 1Strings are always stored in a shared read-only pool, and equal short strings share the same buffer.
  2. 2String concatenation is deferred and performed lazily at the first access to the concatenated result.
  3. 3Short strings store their buffer inline in the string object to avoid heap allocation.
  4. 4All strings are interned globally, so two strings with the same contents always occupy the same address.

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle