Array in c#



Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value

place the values in a comma-separated list, inside curly braces 
  1. string[] array1 = {"abc""dfg""ghi""xyz"};  
create an array of integers, you could write
  1. int[] array2 = {101, 201, 301, 401};  
 

0 Comment's

Comment Form

Submit Comment