結果 : explain dangling pointer problem with example