COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of these is necessary to specify at time of array initialization?
A
Row
B
Column
C
Both Row and Column
D
None of the mentioned
Explanation: 

Detailed explanation-1: -At time of array initialization which is necessary to specify? Explanation: Row is necessary to specify at time of array initialization.

Detailed explanation-2: -Arrays can be declared by specifying the size or the number of array elements.

Detailed explanation-3: -To initialize or instantiate an array as we declare it, meaning we assign values as when we create the array, we can use the following shorthand syntax: int[] myArray = 13, 14, 15; Or, you could generate a stream of values and assign it back to the array: int[] intArray = IntStream.

There is 1 question to complete.