All challenges
Multiple ChoiceIntermediate 45s

to_chars result contract

What does std::to_chars(buf, buf+N, value) return on success?
Options
  1. 1A to_chars_result with ec==std::errc() and ptr one past the last written char
  2. 2The number of characters written, as a plain std::size_t count of the output
  3. 3A std::string holding the formatted characters that were written to the buffer
  4. 4A boolean true to indicate the entire value fitted within the supplied buffer

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