i have written many programs using stack , but how do i write a program to find whether the stack is progressing in forward or reverse direction . ?

Make your first two elements in a stack, and then compare the addresses they have.