If I understand correctly, the RAM is virtually divided into stack and heap. Stack takes primitive types/functions etc and Heap deals with the reference types and objects. Stack follows the LIFO principle.
Since everything the computer saves goes to memory, where do stack and heap come into play in that case? Like, let's say saving some text to a notepad. Does it go to stack or heap?
Edit: I guess all I am asking is, is this statement correct?
"At a fundamental level, all programs and apps, including built-in ones like notepad, rely on memory management mechanisms like the stack and heap to store and manage data. Example: the stack and heap are being used to control features of notepad like lets say tracking the cursor position, the text I have entered, and various other parameters."