C# – Array

Array

  • You can store multiple variables of the same type in an array data structure. You declare an array by specifying the type of its elements.
1
Creating Array
1-1
Result | Creating Array
2
Multi-Dimensional Array
2-1
Multi-Dimensional Array | Result
3
“foreach” statement with Array
3-1
“foreach” statement with Array

 

Array.Clear(Array, int32, int32)

  • Sets a range of elements in an array to the default value of each element type.

 

 

스크린샷 2018-05-09 오후 8.35.16
Array.Clear

 

스크린샷 2018-05-09 오후 8.37.05스크린샷 2018-05-09 오후 8.37.10

스크린샷 2018-05-09 오후 8.40.10

스크린샷 2018-05-09 오후 8.40.15
Array.Clear | Result

 

Leave a comment