C++20 sections · 1024 units
Open in Course

Quiz: Tuple Creation

Knowledge check

Check Your Understanding

Which creates a tuple with int, string, and bool?

  1. A.Both b and c
  2. B.tuple t(5, "test", true);
  3. C.tuple<int, string, bool> t = {5, "test", true};
  4. D.auto t = make_tuple(5, "test", true);
Start the roadmap to answer the quizzes and solve the challenges