+ 1
What's the logic here in array
Logic behind this the out is 211 can someone tell me class Arr { public static void main(String args[]) { int [] a= {1}; int []b[]={{1}}; int [][]c[]={{{1}}}; int [][]d[][]={{{{1}}}}; System.out.println(a[0]+b[0][0]+""+c[0][0][0]+d[0][0][0][0]); } }
2 Answers