You can use standard algorithms i.e. :
#include <iostream>
#include <algorithm>
int main() {
int array_1[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
int array_2[9] = {0, 3, 4, 6, 7, 2, 9, 8, 5};
int* missingValPtr = std::find_if(std::begin(array_1), std::end(array_1), [&](int arr1Val){
return std::none_of(std::begin(array_2), std::end(array_2), [&](int arr2Val) {
return arr1Val == arr2Val;
});
});
if(missingValPtr != std::end(array_1)) {
std::cout << "The missing vlue is: " << *missingValPtr;
}
}
solved Find missing int values from over two or more different dynamic arrays [closed]