Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

A pointer to a block of memory is effectively same as an array

Question: A pointer to a block of memory is effectively same as an array
[A].

True

[B].

False

Answer: Option A

Explanation:

Yes, It is possible to allocate a block of memory (of arbitrary size) at run-time, using the standard library’s malloc function, and treat it as an array.