結果 : three methods of memory allocation