News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

Introduction of Arrays

Started by thiruvasagamani, Jul 11, 2008, 02:16 PM

Previous topic - Next topic

thiruvasagamani

Brief Description

Programming C# is a new self-taught series of articles, in which I will teach you C# language in a tutorial format. This article concentrates on arrays in .NET and how you can work with arrays using C# language. Article also covers the Arrays class and its method, which can be used to sort, search, get, and set an array items.

Introduction

In C#, an array index starts at zero. That means first item of an array will be stored at 0th position. The position of the last item on an array will total number of items - 1.

In C#, arrays can be declared as fixed length or dynamic. Fixed length array can stores a predefined number of items, while size of dynamic arrays increases as you add new items to the array. You can declare an array of fixed length or dynamic. You can even change a dynamic array to static after it is defined. For example, the following like declares a dynamic array of integers.

int [] intArray;

The following code declares an array, which can store 5 items starting from index 0 to 4.

int [] intArray;
intArray = new int[5];

The following code declares an array that can store 100 items starting from index 0 to 99.

int [] intArray;
intArray = new int[100];
Thiruvasakamani Karnan


alenfort

This is an independent guide to the language of the array. It is designed to be an introductory article, programmers came into contact with any language. However, the reader should be familiar with the subject of the variables and data types, or at least understand that a variable is a place, including the existence of a value can be stored, retrieved and updated.

changdellen

Arrays can most easilly be described as an ordered list. Arrays are a vital part of programming, as they allow the programmer to store more than one value in a variable, whilst retaining a single reference. Arrays help make our content more organised and make logical sense to our programs by gathering items of the same type under a single category.

yagnesh

An array is a systematic arrangement of objects, usually in rows and columns.
Array data structure, an arrangement of items at equally spaced addresses in computer memory.
Array data type, used in a programming language to specify a variable that can be indexed.
Array always start form zero.it contain same data type valve.
Array are used in mobile application development.
Dynamic array, allocated at run time.
Array programming, using matrix algebra notation in programs.

pradeep prem

in array main object is used to have get this row and column
array can be used in mobile application
this is easy to gather information