Which is the correct two-dimensional array declaration? int grades[2][4]: int grades[2][4]: int grades[2][4]: int grades[2][4]:
Added by Antonio W.
Step 1
`int[2Jl4) grades:` - This is incorrect because it uses mismatched brackets and incorrect syntax. Show more…
Show all steps
Your feedback will help us improve your experience
Samuel Goyette and 99 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
'Which of the following correctly declares an array? int arr; int arr[array size]; array{array size}; array arr[array size];'
Rakesh S.
Correct the following wrong statements. A ragged 2D array is a 2D array in which each row may contain the same number of columns.
Chandra J.
Choose the statement that does not apply to the following declaration: doubleƒ[ , ]ƒtotalCostOfItemsƒ=ƒ ƒƒƒƒ{{109.95,ƒ169.95,ƒ1.50,ƒ89.95}{27.9, 18.6, 26.8, 98.5}}; a. declares a two-dimensional array of floating-point values b. establishes the maximum number of rows as 4 c. sets the array element totalCostOfItems [0, 1] to 169.95 d. declares an area in memory where data of double type can be stored e. all are correct
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD