Question: Define a C function void setItems2DList(int n, int a[n][n], int 5). This function sets the diagonal elements to 1 when s= 0, it sets all
Define a C function void setItems2DList(int n, int a[n][n], int 5). This function sets the diagonal elements to 1 when s= 0, it sets all the elements above the diagonal when s 1 and sets all the elements below the diagonal to 1 when s=-1.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
