Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++variadic templatesSingle-choice MCQ

What is the evaluation order of the side effects in this fold expression on a conforming C++17 compiler?

#include <cstdio> template <typename... Ts> void print(Ts... xs) { ((std::printf("%d ", xs)), ...); } int main() { print(1, 2, 3); }