To check stack grows up or down take two local variable and check their address.
If (address of variable 1 < address of variable 2)
{
Stack is growing upwards;
}
else
{
Stack is growing downwards;
}
Knowledge point
To check stack grows up or down take two local variable and check their address.
If (address of variable 1 < address of variable 2)
{
Stack is growing upwards;
}
else
{
Stack is growing downwards;
}