+ 3

Pls What's the different between these array declaration?

int[] array = {1, 2, 3} ; int [] array = new int [] {1, 2, 3} ;

27th May 2017, 7:30 PM
Chidi
3 Answers
+ 2
there is no diffrence they are initiated as same.
27th May 2017, 8:15 PM
Bahadır
Bahadır - avatar
+ 2
@Bahadir: the question is about C#, not C++. :-)
27th May 2017, 8:17 PM
Igor B
Igor B - avatar
0
@Igor :) thanks my fault
27th May 2017, 8:27 PM
Bahadır
Bahadır - avatar