1 ) at compile-time in the symbol table for memory allocation, compiler stores which address starting bucket or ending bucket of the array variable in virtual memory?
2)for how long the memory allocated to the variable lasts if we do not delete it. Please clear this as my teacher was telling it will be present in the ram forever?
- like in dynamic allocation if we simply reassign the pointer without delete it stays in the heap but if we re assign the variable in the static memory does the memory assigned automatically gets deleted or stays?