A two-dimensional array has 3 rows and 4 columns Write down the-01027
This subjective question is related to the book/course vu cs607 Artificial Intelligence. It can also be found in vu cs607 Mid Term Solved Past Paper No. 2.
Question 1: A two-dimensional array has 3 rows and 4 columns. Write down the syntax to initialize first element of all three rows of two-dimensional array with value 2.
int matrix[1][0]=2
int matrix[2][0]=2
Answer:
int matrix[0][0]=2int matrix[1][0]=2
int matrix[2][0]=2