The memory used by the program will vary as the program executes.
First the .EXE file (that is the executable program file) will occupy a certain amount of memory. You can find this out by doing a DIR listing and seeing now big the file is. This will contain space for your program code and the global variables and constants that you declare.
Second, memory on the stack will be allocated and deallocated as the various functions in your program execute and use local variables.
Third, if you use the heap memory, this will be allocated and deallocated as you use the NEW and DELETE keywords.
The IDE that you are using may also give you statistics on your program that may help.
Alan
|