0
Y would i ever want to declare a variable from heap than declaring in normal way(i dont what its called? :D)
4 odpowiedzi
+ 3
variables that are defined in program statically
which are normal variables not defined by New operator placed in stack memory area.
+ 1
so if I define int a = 10 in the main function ,it will go in stack ?
0
yes
0
Stack is for local variables defined in a function I guess