Hi, I am getting confused about the arguments passed to the function in the recursive call. It is as follows-
-
In the recursive call when (a + 1) is passed it will go the next integer, but integers are of 4 bytes so should it not be (a + 4). Is it because the array is of type int and a + 1 will move the pointer by 4 places?
-
How will this work in case of strings or character arrays as passing the string in the function will not pass the address of the first character? Do we need to use ‘&’ operator in that case?