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
solved Something went wrong with passing pointer to a function
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
solved Something went wrong with passing pointer to a function