Why does performing a cout on a number allocate memory to the heap?

Viewed 966

Like the title says, when I perform a cout on any type of number(float, int, double, etc) it allocates 7 indices to the heap. Does anyone know what causes this behavior, or is it an issue with something else in my code.

Images showing the behavior: Before cout is called

After it's called

1 Answers
Related