Computer Science, asked by vamugsw22661, 1 year ago

Arrays are already stored in which memory locations)

Answers

Answered by RayyanKashan
1

Answer:

Contiguous memory location

Explanation:

An array stores its elements in contiguous memory locations.

If You created the array locally it will be on stack. Where the elements are stored depends on the storage specification.

For Example:

An array declared globally or statically would have different storage specification from an array declared locally. Technically, the where part is implementation defined but usually implementations would use similar usage patterns.

A local array will be (usually) created on stack while

A global or static array will be (usually) created on bss/data segments and

A dynamically created array will be created on heap.

Hope its clear

pls mark me brainliest

Similar questions