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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started