It depends on what the application was written in.
In VB, you declare aa variable as follows:
Dim xxx as string
This will allocate an area of RAM to hold a string. when you assign a value to the string:
ie
xxx = "this is my test"
the data will be put into RAM.
You now have the added complication of the scope of the variable.
If the variable is a global, the RAM will be the HEAP. This is the global area of memory assigned to an application.
If on the other hand, the variable is a local variable, it will be placed on the STACK. Once the current function has finished, the stack used by it is cleared ( and hence the memory can be used again).
Other languages have different methods of declaring and maintaining variables.
Applications like MemTurbo (I don't actually know what it is?) Will use the WINAPI to directly access areas of memory.
Hope this helps,
Chris Dukes