Malloc call crashing, but works elsewhere

前端 未结 4 1274
春和景丽
春和景丽 2020-12-21 06:07

I wonder if anyone might have any insight on this...

My program is crashing on this call:

void subtract(data* array,data* inverse,int a, int b, int q         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-21 06:36

    You all are right, but anyhow I wonder why this crashes.

    I wonder because the size of data (as defined above) is expected to be less or equal to the size of data*.

提交回复
热议问题