Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
配列 A があり、この配列を位置 x から y まで C 言語の別の配列にコピーしたいと考えています。cで作成するのを手伝ってください。
memcpy を使用すると、配列が最初からのみコピーされます。特定の位置から別の位置にコピーしたい。
for(i=x, j=0; i<=y; i++, j++) AnotherArray[j]= A[i];