///////////////////////////////////////////// // function.cpp - how do I use a function? // ///////////////////////////////////////////// #include using namespace std; // functions encapsulate some small piece of processing // so that their callers don't have to worry about the // details handled by the function //----< print contents of integer array >---------------------- void printArray(int Arr[], int size) { cout << "\n "; int i; for(i=0; i------------ int ArraySum(int *pInt, int size) { int i, sum = 0; for(i=0; i-------- void main() { const int size = 5; int MainArray[size]; int i; for(i=0; i