Question
Which of the following correctly declares an array of six integers?a. int array[6];c. int[6] array;b. int [] array $=6$;d. int [] array $=$ new int $[6]$;
Step 1
In most programming languages like C, C++, and Java, the syntax for declaring an array involves specifying the type, the name of the array, and the size of the array in square brackets. Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD