#include using namespace std; void PrintArray(int ary[], size_t len, string title); void MessWith(int ary[], size_t len); void CantTouchThis(const int ary[], size_t len); int main() { int a[] = {1,2,3,4}; int b[] = {1,2,2,4}; // there is not output of arrays cout << "Executing: cout << \"The array is \" << a << endl" << endl; cout << "The array is " << a << endl; cout << endl; cout << "Cmparing a and b" << endl; if (a == b) { cout << "The Same " << endl; } else { cout << "Different " << endl; } // no direct comparison cout << "The contents are " << endl; PrintArray(a, 4,"a"); PrintArray(b, 4,"b"); cout << "But the addresses are " << a << " and " << b << endl; cout << endl; // no assignment. // a = b; // no input // cin >> a; // pass by reference by default cout << "Before the call " << endl; PrintArray(b, 4,"b"); cout << "Calling MessWith() " << endl; MessWith(b,4); cout << "After the call " << endl; PrintArray(b, 4,"b"); cout << endl; /* // pass by const reference cout << "Before the call " << endl; PrintArray(a, 4,"a"); cout << "Calling MessWith() " << endl; MessWith(a,4); cout << "After the call " << endl; PrintArray(a, 4,"a"); */ return 0; } void PrintArray(int ary[], size_t len, string title){ size_t i; cout << title << ":"; for(i=0; i< len; i++) { cout << " " << ary[i]; } cout << endl; return; } void MessWith(int ary[], size_t len){ size_t i; for(i=0;i