What is the purpose of an array in C?
- To create functions
- To perform arithmetic operations
- To store a single value
- To store multiple values of the same data type
The purpose of an array in C is to store multiple values of the same data type in a contiguous memory block, making it easier to work with collections of data.
Loading...
Related Quiz
- When using dynamic memory allocation for arrays, which standard library function is used to release the memory that was previously reserved?
- What is the scope of a global variable in a C program?
- What is the behavior of a union when different data types of different sizes are used?
- The function ________ is used to read formatted input from the standard input.
- What is the behavior of malloc when the size requested is zero?