A pointer to a block of memory is effectively same as an array
Answer: A
Correct answer: True
An array name in an expression yields a pointer to its first element, and a[i] is defined as *(a + i). So once you have a pointer to a block of memory you can subscript it exactly as you would an array. The two differ in what they are - an array is storage, a pointer is a variable holding an address - but for reading and writing elements they behave the same.
Please log in or register to report this question.