fixed bug for ptr = array. and pre + post for pointer.