Consider the following program, where are $x, y$ and $z$ are stored in main memory partition?
```
int y;
int main()
f
int z = 0;
int *x = int * malloc( sizeof(int));
}
```
A. $\mathbf{x}$ is stored on the heap memory partition, $y$ is stored on the global partition and $z$ is stored on stack partition.
B. $x, y$ and $z$ variables are stored on the stack partition.
C. x is stored on the heap memory, y and z variables are stored on stack partition.
D. $x$ and $y$ are stored on the heap memory partition and $z$ is stored on stack partition.