C++20 sections · 1024 units
Open in CourseQuiz: Array Basics
Test understanding
Check Your Understanding
What happens if you declare int values[size]; where size is a variable read from user input?
- A.The compiler rejects this because array sizes must be compile-time constants
- B.The array is created but initialized to zeros
- C.The array is created with the user-specified size
- D.The program crashes at runtime