About C/C++ stack allocation

前端 未结 7 690
一个人的身影
一个人的身影 2020-12-15 12:44

While studying C++ (and C) I had some particular doubts regarding the working of stack allocation, that I can\'t find a solution to:

  1. Does stack allocation c

7条回答
  •  眼角桃花
    2020-12-15 13:32

    Kepp in mind that "stack allocation" is an implementation detail. There is no guarantee that a stack is used for automatic storage. For example, IBM mainframes of lore didn't (though I'm told their more modern machines do).

提交回复
热议问题