+ 1

int arr=new int['a']; what is meant by character 'a' in this declaration??I came through this question in the quiz.

https://code.sololearn.com/cm08TU14OFY3/?ref=app

20th Jan 2021, 8:55 PM
Jahnavi M
Jahnavi M - avatar
2 ответов
+ 2
It basically assigns the ASCII value of 'a' as the size of array which is 97. // This will give you the length of array System.out.print(a.length);
20th Jan 2021, 8:58 PM
Avinesh
Avinesh - avatar
0
Thank you 👍
20th Jan 2021, 8:59 PM
Jahnavi M
Jahnavi M - avatar