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?
|
2 and 1
|
|
2 and 2
|
|
3 and 2
|
|
2 and 3
|
|
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.