C++20 sections · 1024 units
Open in Course

Quiz: Array Basics

Test understanding

Check Your Understanding

What happens if you declare int values[size]; where size is a variable read from user input?

  1. A.The compiler rejects this because array sizes must be compile-time constants
  2. B.The array is created but initialized to zeros
  3. C.The array is created with the user-specified size
  4. D.The program crashes at runtime
Start the roadmap to answer the quizzes and solve the challenges