If you have lets say:
Where is this stored in memory? I mean, should this go to the stack? heap? I'm just confused since I'm not using 'new' which is an obvious sign it goes to the heap.
constants go to the stack right?
`x' is in the stack (don't worry, it's lightweight)
`x' would go to the heap
vector uses new internally.
main must return int.
Topic archived. No new replies allowed.