函數的調用過程(棧幀)

拿一段簡單的代碼爲例: #include <stdio.h> int Add(int x,int y ) { int z = 0; z = x+y;  return z; } int main() { int a = 10; int b = 20; int c = 0; c = Add(a,b); printf("%d \n",c); return 0; } 程序調試的時候,查看調用堆棧: 不難發
相關文章
相關標籤/搜索