When you declare an array, what does the number inside the square brackets represent?
- Array's name length
- Index of the last element
- Number of elements in the array
- Total memory allocated to the array
The number inside the square brackets when declaring an array in C represents the number of elements or the size of the array. It indicates how many elements the array can hold.
Loading...
Related Quiz
- The preprocessor directive ________ is used to include libraries in a C program.
- What considerations should be taken into account when using nested loops?
- How does the 'return' statement affect the flow of control within a loop?
- When defining a bit field, what does the number after the colon represent?
- To resize a previously allocated memory block, the function ________ is used in C.