how to define an array in c sharp

Posted by Shanky11 under C# on 3/26/2013 | Points: 10 | Views : 866 | Status : [Member] | Replies : 4
how can we define an array ????
explain in details......
what is the purpose and advantages/disadvantages of it???




Responses

Posted by: Jayakumars on: 3/26/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
array reduce the memory space.

example this

protected void Bt_Submit1_Click1(object sender, EventArgs e)
{
string[] charArray = new string[3];
charArray[0] = "AAA";
charArray[1] = "BBB";
charArray[2] = "CCC";

}

refer this

http://www.dotnetperls.com/initialize-array

Mark as Answer if its helpful to you

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vforvijay on: 3/26/2013 [Member] Starter | Points: 25

Up
0
Down
Hi..
Refer the below link to know the advantage of array..........
http://www.dotnetcode.in/2012/10/difference-and-performance-between.html


Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Murugavelmsc on: 3/26/2013 [Member] Starter | Points: 25

Up
0
Down
http://www.tutorialspoint.com/csharp/csharp_arrays.htm

Regards,
Murugavel S
murugavel.sadagopan@gmail.com
http://murugavelmsc.blogspot.in/

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Satyapriyanayak on: 3/26/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
http://msdn.microsoft.com/en-us/library/aa288453%28v=vs.71%29.aspx
http://www.c-sharpcorner.com/UploadFile/mahesh/WorkingWithArrays11232005064036AM/WorkingWithArrays.aspx
http://www.codeproject.com/Articles/161465/Arrays-Basics-in-CSharpDotNetTech
http://csharp.net-tutorials.com/basics/arrays/

If this post helps you mark it as answer
Thanks

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response