C++20 sections · 1024 units
Open in CourseQuiz: Initialization
Test understanding
Check Your Understanding
What are the values of nums[2] and nums[3] after int nums[5] = {7, 8};?
- A.Both are undefined (garbage)
- B.nums[2] is 0, nums[3] is undefined
- C.Both are 0
- D.Both are 7