" == " operator

As in the video maam told that “==” operator is used for comparisions of variables in stack.
So in the case of arrays while we compare two different array elements are we actually comparing their addresses??
Thus this hints us that even integers are created only once in the heap memory ??

this is valid only for strings and not arrays