64,648
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
long int count = 0;
void func(int a, int b) {
char msg[1024];
printf("count: %ld\n", count++);
func(count, count);
}
int main(void)
{
int a = 0, b = 0;
func(a, b);
return 0;
}
当Segmentation fault之前的count值就差不多是栈的大小,单位为K