#include using namespace std; void add_vectors(const double *a, const double *b, double *result){ result[0] = a[0] + b[0]; result[1] = a[1] + b[1]; } int main(){ double first_vector[2] = {5.6, 3.4}; double second_vector[2] = {-7.2, -1.3}; double result_vector[2]; add_vectors(first_vector, second_vector, result_vector); cout << "Result: " << result_vector[0] << ", " << result_vector[1] << endl; cout << first_vector + second_vector << endl; return 0; }