結果 : explain static memory allocation and dynamic memory allocation with suitable examples