If you’re not familiar with https://cppquiz.org, it is, as its name suggests, a C++ quiz site. Each quiz is a full C++ program, and your task is to figure out what the output is. But the real value often lies in the explanation, which goes into detail about why the answer is what it is. The explanations typically reference the standard quite a lot, so it’s a lot of work to port all of them whenever a new standard is published.
Thanks to some great help from the community, especially @tocic, we managed to port the whole site over the summer. So now you can enjoy up-to-date questions and explanations using the very latest C++23!
As promised in Help Get CppQuiz to C++23 And Win a Book, three contributors were drawn to win a copy of my book C++ Brain Teasers. Below is a recording of that:
Again, thanks a lot to everyone who contributed, and congratulations to the three winners! You will be contacted by email to arrange for shipping.
Discover more from C++ on a Friday
Subscribe to get the latest posts sent to your email.
Is there a way to access the old C++17 questions and answers? Some of us are not as bleeding edge as you.
All the C++17 questions are still there, it’s just the references to the standard in the explanations that have been updated with the wording from C++23. C++ is extremely backward compatible, so the answers to the questions rarely change with a new standard. This time I think we had to change the answer to one single question.
Also, we haven’t really added many questions that are C++20 or C++23 only.
So I’d just use the site as it is now. But if you’re really interested, you can clone https://github.com/knatten/cppquiz23 and check out the commit before we started porting.