Flood fill algo

in the function flood fill without passing the input array as address how the changes are made in the array ?

simply sending it this way will update the 2D array

can refer this as well