COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Assume int[][] x = {{1, 2}, {3, 4}, {5, 6}}, what are x.length are x[0].length?
A
2 and 1
B
2 and 2
C
3 and 2
D
2 and 3
E
3 and 3
Explanation: 

Detailed explanation-1: -7.10 How can you initialize an array of two characters to ‘a’ and ‘b’? A. char[] charArray = new char[2]; charArray = ’a’, ‘b’;

There is 1 question to complete.