I understand(not completely why, though) that instances of primitive types such as int, float are stored on the stack and are not heap allocated. But I am a bit confused abo
This article by Jeffry richter written back in 2002 explains this concept very clearly.