[ad_1]
You are passing the arrays to sameNumberCheckOfTwoArrays as pointers. In this process, the “array-ness” is dropped. Your function only sees an int* and reports the size accordingly.
3
[ad_2]
solved Something went wrong with passing pointer to a function