Skip to content

Instantly share code, notes, and snippets.

@imsjz
Created February 19, 2020 04:03
Show Gist options
  • Save imsjz/cb1e9599d3a03f4a9cb056f0e0f30fd2 to your computer and use it in GitHub Desktop.
Save imsjz/cb1e9599d3a03f4a9cb056f0e0f30fd2 to your computer and use it in GitHub Desktop.
学习栈帧
#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