Problem with the value of n

first of all why we use the n while declaring and defining the function compare. and what is this formula of “n=sizeof(a)/sizeof(int)”.

Mention the timestamp in the video so that i can check what you are referring to.

You can fin the length of an int array using sizeof(array)/sizeof(int)
sizeof(array) will be the total size of array meaning total size of all the elements present in it.
size(int) can be considered as the size of one element of the array.
Clearly, by math…you you divide the first by second…you will get the number of elements.