Thursday 25 April 2019

Stack and heap in c#







There is a difference in C# between heap and stack. I've just realized that I always thought that stack is RAM and heap is hard drive. But now I'm not sure if it's correct. If it isn't then what's is the difference if they are stored in one place?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...