If I pass a constant value into a function is the memory allocated for the variable on the stack or heap? There is an example bellow.
void foo( const int value )
What i mean is, Is value declaired on the heap or stack? I am thinking the only values stored in the heap are pointers but I'm not sure about constants...