Juniper Networks Interview Question

In the sample program which variable is stored in what ? (stack, heap, data segment , bss etc) . How to find the size of a variable.