Answers for "assign array to array"

C++
0

assign array to array

#include <algorithm>
int main()
{
  int numbers[5] = {1, 2, 3};
  int values[5] = {};
  std::copy(numbers, numbers + 5, values);
}
Posted by: Guest on September-19-2021

Code answers related to "assign array to array"

Browse Popular Code Answers by Language