Ace Your C++ Skills 2025 – Rock the ‘Thinking in C++’ Challenge!

Question: 1 / 565

Which programming approach relies on creating a huge global array for storage?

C++

Java

C

C programming approach relies on creating a huge global array for storage because it uses static memory allocation, where the full size of the array is allocated at the time of compilation. This means the array has to be declared as a global variable and its size cannot be changed during runtime. This approach is not ideal in modern programming as it can lead to memory wastage and potential program crashes. A, B, and D options all use dynamic memory allocation, meaning arrays and other data structures can be created and resized during program execution, making them more flexible and efficient. Therefore, they do not rely on creating a huge global array for storage.

Get further explanation with Examzify DeepDiveBeta

Python

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy