Compare heap and stack memory | LinkedIn