Upon the death of either husband or wife, the survivor may continue to possess and occupy the whole homestead until it is otherwise disposed of according to law; and upon the death of both husband and wife the children may continue to possess and occupy the whole homestead until the youngest child becomes of age.
SDCL 43-31-13