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

What does this variadic fold-based function return for `sum(1, 2, 3, 4)`?

template <typename... Ts> auto sum(Ts... xs) { return (xs - ...); }