Question
3. Write a C function in Replit that takes as input a square two-dimensional integer array of any size, and replace the first row of the array with the corresponding values of the diagonal. Call the function with a 3x3 array of random nonzero integers. Print the array before and after the function call. For example, if the array below is provided as input to the function: 249 415 528 Then the final array should be: 218 415 528
Question image 1