C语言,函数的调用过程(栈帧)

来源:互联网 发布:10月经济数据 统计局 编辑:程序博客网 时间:2024/06/05 17:08

源程序:
#include <stdio.h>#include <stdlib.h>int Add(int x,int y){int rec = 0;rec = x + y;return rec;}int main(){int a = 2;int b = 3;int z = Add(a, b);printf("%d\n", z);system("pause");return 0;}

栈帧的创建:



栈帧的销毁: