Answer from cs61c-by (toan nguyen 16197920) for Question 1 a, since malloc allocates memories to variables