So from my previous memmove question I would like to know how to find direction of stack growth.
void stackDirection(int* i)
{
int j;
if(&j>i)
cout<<"Stack is growing up
"<<endl;
else
cout<<"Stack is growing down
"<<endl;
}
int main()
{
int i=1;
stackDirtection(&i);
}
See Question&Answers more detail:os