× for(h=1;h<l;h++) p[h]=p[h-1]+n*sizeof(int)
○ for(h=1;h<l;h++) p[h]=p[h-1]+n

int型へのポインタに対する足し算引き算は、デフォでint型のサイズ単位なのでsizeof(int)をかけてやる必要は無い