This is the same question asked in C# but i need for C++
How can I copy a part of an array to another array?
Consider I\'m having
int[] a = {
Yes, use std::copy:
std::copy(a + src_begin_index, a + src_begin_index + elements_to_copy, b + dest_begin_index);
The equivalent of your C# example would be:
std::copy(a + 1, a + 4, b);