所以从我之前的memmove问题我想知道如何找到堆栈增长的方向.
void stackDirection(int* i) { int j; if(&j>i) cout<<"Stack is growing up \n"<<endl; else cout<<"Stack is growing down \n"<<endl; } int main() { int i=1; stackDirtection(&i); }