Question: 1.C++ function definition given the prototype below.The function will return boolean true ifboth arrays are equal. It will return false if they are not equal.

1.C++ "function definition" given the prototype below.The function will return boolean "true" ifboth arrays are equal. It will return false if they are not equal. NOTE:The arrays are a list of integers,

each array is terminated with a "-1" (negative one).So to return a 'true" both arrays have to be the same length (-1 marking the end of each array) AND have the same element in each position or index :

// prototype

boolarraysAreTheSame(int [ ], int [ ]);

2. C++ "function definition" given the prototype below and the function will return boolean "true" if all of the array numbers in the array are equal to the value of 20 or false otherwise:

// prototype

boolallArrayElementsAreTwenty(int[ ], int);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!