Question: Given two Arrays, arr1 and arr2, write a C++ function to check if arr2 is a sub array of arri. For Example: if arri {1,
Given two Arrays, arr1 and arr2, write a C++ function to check if arr2 is a sub array of arri. For Example: if arri {1, 2, 3, 4} and arr2 = {2, 3) then arr2 is a sub of arr1 while if arr2={2 4} then arr2 is not a sum of arri. Note: You must use the following header: 4 obisSub(int arri[],int arr2[]); Given two Arrays, arr1 and arr2, write a C++ function to check if arr2 is a sub array of arri. For Example: if arri {1, 2, 3, 4} and arr2 = {2, 3) then arr2 is a sub of arr1 while if arr2={2 4} then arr2 is not a sum of arri. Note: You must use the following header: 4 obisSub(int arri[],int arr2[])
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
