Académique Documents
Professionnel Documents
Culture Documents
• After storing values into the array, you need to access the values from
array and require some operation on value.
• As storing value in array is very simple, the accessing value from array
is also so simple.
• You can access array’s value by its index position.
• Each index position in array refers to a memory address in which your
values are saved.
OUTPUT
One Dimensional Array
• The Array class is the base class of all the arrays in C# programming.
• Array class is defined within the system namespace.
• Array class provides number of predefined functions and properties
to work with.
• Its function makes array much easier and simpler to work.
int[] arr = new int[4];
MOST COMMON PROPERTIES OF ARRAY CLASS
MOST COMMON FUNCTIONS OF ARRAY CLASS
Practice questions
• Qu 1 :
Write a program of sorting an array. Declare single dimensional array
and accept 5 integer values from the user. Then sort the input in
ascending order and display output