14
堆栈会向上还是向下生长?
我在c中有这段代码: int q = 10; int s = 5; int a[3]; printf("Address of a: %d\n", (int)a); printf("Address of a[1]: %d\n", (int)&a[1]); printf("Address of a[2]: %d\n", (int)&a[2]); printf("Address of q: %d\n", (int)&q); printf("Address of s: %d\n", (int)&s); 输出为: Address of a: 2293584 Address of a[1]: 2293588 Address of a[2]: 2293592 Address …