How to Find Common Elements Between Two Arrays using STL in C++?
Given two arrays, the task is to find all the elements that are present in both the arrays i.e. common elements between both arrays in C++. Example: Input: arr1[] = {1, 45, 54, 71, 76, 12} arr2[] = {1, 7, 5, 4, 6, 12}Output: 1 12Explanation: The common elements between the two arrays are 1 and 12. I