Answer:
To do this you'll need to use malloc to assign memory to the pointers used. You'll also need to use free to unassign that memory at the end of the program using the free. Both of these are in stdlib.h.
#include <stdlib.h>
#include <stdio.h>
#define SIZE_X 3
#define SIZE_Y 4
int main(void){
int **matrix, i, j;
// allocate the memory
matrix = (int**)malloc(SIZE_X * sizeof(int*));
for(i = 0; i < SIZE_X; i++){
matrix[i] = (int *)malloc(SIZE_Y * sizeof(int));
}
// assign the values
for(i = 0; i < SIZE_X; i++){
for(j = 0; j < SIZE_Y; j++){
matrix[i][j] = SIZE_Y * i + j + 1;
}
}
// print it out
for(i = 0; i < SIZE_X; i++){
for(j = 0; j < SIZE_X; j++){
printf("%d, %d: %d\n", i, j, matrix[i][j]);
}
}
// free the memory
for(i = 0; i < SIZE_X; i++){
free(matrix[i]);
}
free(matrix);
return 0;
}
C.cannot be viewed on a screen
Answer:
Rep;ace the blank with
smaller, bigger
So, the complete line is:
smaller,bigger=order_numbers(100,99)
Explanation:
From the question, we understand that the program is to return the order of a number from least to highest
This has been well implemented in order_numbers function
Because the order function returns two values, the order_function must be called in order to accept two values and the syntax is:
<em>value1,value2 = function(return-value1,return-value2)</em>
In this case, the statement is:
smaller,bigger=order_numbers(100,99)
So, in the next line of the main, the values of smaller and bigger are printed:
<em>print(smaller,bigger)</em>
See attachment
Answer:
scope of pet name is limited to pet class and color is accessible to the whole program
Explanation:
D. Plot because a,b,and c is consider plot can i have brainlest answer please