Pergunta de entrevista da empresa Cisco

Given a memory location (or a reference), how would you determine whether it was located in the stack or the heap? Write a program to determine this.