函数传参stack空间
![](https://img2020.cnblogs.com/blog/867184/202009/867184-20200914010604715-1180576753.png)
#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include <signal.h> #include <string.h> static int myfunction(int a,int b,int c ,int d) { int e; printf("a is %p\n",a); printf("b is %p\n",b); printf("c is %p\n",c); printf("d is %p\n",d); printf("e is %p\n",e); return 0; } int main() { myfunction(1,2,3,4); for(;;); return 0; }
一勤天下无难事。