Are references stored on the heap or stack?

后端 未结 4 668
被撕碎了的回忆
被撕碎了的回忆 2021-01-12 02:44

I wonder whether the reference variables such as c in this code:

int a = 5;
int & c = a;

are allocated from heap or stack.

4条回答
提交回复
热议问题