CODE IN C /** * Function: extract_window * Description: populates 2D array windo
ID: 649283 • Letter: C
Question
CODE IN C
/**
* Function: extract_window
* Description: populates 2D array window with sub-matrix
* of landscape 2D array starting at column
* start_col.
* Returns 1 on success, 0 on failure.
* Fails when start_col is not valid -- i.e.,
* specifies a window not contained in the
* landscape.
*
* Note: nrows applies to both the landscape and the window.
*/
extern int extract_window(char landscape[][L_WIDTH],
char window[][W_WIDTH],
int nrows, int start_column);
Explanation / Answer
void main()
{
int arr[3][3], i, j, sum=0;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
printf(
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.