C++20 sections · 1024 units
Open in CourseQuiz: Tuple Creation
Knowledge check
Check Your Understanding
Which creates a tuple with int, string, and bool?
- A.Both b and c
- B.tuple t(5, "test", true);
- C.tuple<int, string, bool> t = {5, "test", true};
- D.auto t = make_tuple(5, "test", true);