*p++ = val;

val = *--p;

 

章5.5 4.3