Computer Science, asked by justheretocopy, 8 months ago

Give the output of the following program code:
char arr[ ] = {'a', 'b', 'c', ‘A’, 'B', 'C'};
char abb[] = arr;
System.out.println(Math.pow(arr.length,3));
System.out.println(arr[0]== arr[3]);
System.out.println(abb == arr);

Answers

Answered by anindyaadhikari13
25

Output:-

216

false

true

I hope you get it.

Answered by Vyomsingh
1

Answer:

Array value of arr will assign in abb[]

.........

arr.lenth=6

--Math.pow(6,3)=216

--('a'=='A'). Which is false.......

--Both Array are equal...

________________

Hence Output:-

216

false

true

Explanation:

Similar questions