Question 19
Back to Exercise
How do you produce a literal { character with std::format?
- A \{
- B {{ Correct
- C {'{'}
- D It is impossible
Correct Answer: Option B
Braces are doubled: std::format("{{{}}}", 5) produces {5}.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!