Created
February 19, 2020 04:03
-
-
Save imsjz/cb1e9599d3a03f4a9cb056f0e0f30fd2 to your computer and use it in GitHub Desktop.
学习栈帧
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
# 学习函数调用的过程和栈帧的理解 | |
# 推荐链接:https://segmentfault.com/a/1190000007977460 | |
int MyFunction(int x, int y, int z) { | |
int a, b, c; | |
a = 10; | |
b = 5; | |
c = 2; | |
return 1; | |
} | |
int main() { | |
int x = 1, y = 2, z = 3; | |
MyFunction(1, 2, 3); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment