стека и куча память в ОЗУ

STACK and HEAP used for memory allocation stored in the computer's RAM
jp98