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

What does this fold expression compute, and is it valid C++17?

template <typename... Args> auto sum_minus(Args... args) { return (args - ...); } int r = sum_minus(1, 2, 3, 4); // ?