Question: Write a C++ program that prints out the sum of all even numbers and odd numbers for a given array using pass by reference .
Write a C++ program that prints out the sum of all even numbers and odd numbers for a given array using pass by reference.
*Please try to implement the answer into the code in the attached picture or something similar so that I can better understand.*
This is what I have so far, the program prints the even and odd numbers how I want it to but I don't know how to get them to print using pass by reference: 
#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
