In a scientific computation program, you need to represent a matrix of real numbers. What kind of array would be suitable for this purpose?
- 1D Array
- 2D Array
- Binary Tree
- Dynamic Array (ArrayList)
A 2D array is suitable for representing a matrix of real numbers as it offers a grid-like structure to store rows and columns of values.
Loading...
Related Quiz
- How does the strtok() function work in C?
- When defining a structure in C, which keyword is used?
- In a two-dimensional array declared as int arr[5][10];, the expression arr[i][j] refers to the ________ element in memory.
- How does the 'extern' keyword affect the scope and lifetime of a variable in C?
- In C, what is the main advantage of using bit fields in a structure?