Monday, September 24, 2018 01:36

Archive for March, 2017

Initialization of arrays

Friday, March 31st, 2017

Like any other variables, arrays must be initialized before we can access and use an element of that array. In C#, initialization of arrays is done automatically with default initial values. For numeral types, the default initialization value is 0, False for bool type, null for reference types, etc.… Read more