2D Array Knowledge Test
2D Array Knowledge Test
KNOWLEDGE
TEST
Question #1
*( *( x + 2 ) + 1)
Output:4
9/3/20XX 3
4
QUESTION #2
*( *(x + 2 ) + 5
Output: Garbage value
PRESENTATION TITLE
Question #3
*n
Output: 1
9/3/20XX 5
6
QUESTION #4
*(n + 5)+1
Output: 7
PRESENTATION TITLE
Question #5
++*n Output: 2
9/3/20XX 7
8
PROBLEM #1
Initialize a 2D array with a dimension
of 3 by 3 (Content of the array should
be user input)
PRESENTATION TITLE
Problem #2
Initialize a 2D array with a dimension of 3 by 3
(Content of the array should be user input) and
print the content at
Row 2, col 2
Row 0, col 1
Row 2, col 1
9/3/20XX 9
10
PROBLEM #3
Initialize a 2D array with a dimension of 3
by 3 (Content of the array should be user
input) and print all of its content in a matrix
form
PRESENTATION TITLE
Problem #4
Initialize a 2D array with a dimension of 3 by 3
(Content of the array should be user input) and
prints all its content.
Printing should be done using a pointer
11
12
PROBLEM #5
Initialize a 2D array with a
dimension of 2 by 4 (Content of
the array should be user input
and in main) and print all its
contents in a function
PRESENTATION TITLE
Problem #6
Initialize a 2D array with a dimension of 2 by 4 (Content of the array
should be user input and in main) and finds the sum of each row of
the array and prints it in a function
13
14
PROBLEM #7
Write a program to obtain transpose of a
3x 3 matrix. The transpose of a matrix is
obtained by exchanging the elements of
each row with the elements of the
corresponding column.
Problem #8
PRESENTATION TITLE
15
PRESENTATION TITLE
Problem #10
Write a program to pick up the largest number
from any 3 row by 3 column matrix.
16
PROBLEM #11
17
18
19
PROBLEM #12
Using the program from the previous
problem, the program should counts
the length of the inputted string
without using a library function
Problem #13
PRESENTATION TITLE
20