0

How many types of memory does c++ posses

8th Feb 2017, 7:41 AM
priyanshu
priyanshu - avatar
3 Respostas
0
2, static and dynamic
8th Feb 2017, 9:17 AM
Mieszko Mieruński
Mieszko Mieruński - avatar
0
can you please elaoborate these
8th Feb 2017, 9:27 AM
priyanshu
priyanshu - avatar
0
Static is used for local variables, and everything else which memory usage can be determined before running the program. Dynamic is used for dynamic memory allocation (when u use word "new"). For example when u ask user to define array size during runtime.
8th Feb 2017, 10:44 AM
Mieszko Mieruński
Mieszko Mieruński - avatar