malloc和realloc的區(qū)別 c語言,使用realloc為什么函數(shù)改變了原來內(nèi)存中的數(shù)據(jù)?
c語言,使用realloc為什么函數(shù)改變了原來內(nèi)存中的數(shù)據(jù)?Int*P=(Int*)malloc(15*sizeof(Int))P=(Int*)realloc(P,10*sizeof(Int))//重
c語言,使用realloc為什么函數(shù)改變了原來內(nèi)存中的數(shù)據(jù)?
Int*P=(Int*)malloc(15*sizeof(Int))P=(Int*)realloc(P,10*sizeof(Int))//重新分配空間