How can I copy one array to another in C and get two separate arrays?

后端 未结 0 1672
悲哀的现实
悲哀的现实 2020-12-06 15:59

I need to copy an array to another, then change copied array without affecting the original one. I tried:

memcpy(statesVactor,denominatorFactors,n *sizeof(int))

相关标签:
回答
  • 消灭零回复
提交回复
热议问题