Tuesday, 23 December 2014

how to store the values in array-how to get values from array-Array DEFINATION

(a) how to store the values in array
(b) how to get values from array

Array
DEFINATION:
collection of similar data type with unique decleration

ARRAY PROGRAM
(a)how to store the value in array?
using System;


    class Program
    {
       public static void Main()
        {

            int[] a = { 1, 2, 3 };      (it can store values in array)
            for(int c = 0; c<3;c++)

(b) how to get values from array

           Console.WriteLine(a[c]);   

     }
    }
  

1 comments:

Post a Comment