I am a beginner in C. I want to write a function to return an array containing all elements common to two given arrays containing distinct positive integers.
example