Quiz · Templates · lesson 10 of 11
Quiz — sizeof...
What does the program print?
#include <iostream>
template <typename... Ts>
auto count_args(Ts...) {
return sizeof...(Ts);
}
int main() {
std::cout << count_args(1, 2.5, 'x') << ' ' << count_args();
}Subscribe to take the course
The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.