Meaning of this here?

What is meaning of Contiguous Storage Location?

hello @cbcao263
contigous storage location means data is stored in contiguous memory blocks.

for ex-> if we have array or vector { 1,2,3,4} and we know address of 1 (say 100 ) and we also know how much space each number takes (say 4) then we can easily find address of 2,3,4,5.
because they are stored in contigous blocks of memeory i.e one after other.

so here address of 2 will be 100+4 i.e 104
similary for others.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.