arrays
how to initailise ,declare and assign a word to a character array?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Anand ThakurPosted Oct 20, 2008, 5:22 AM
string
ss = "Anand"; char[] cc = ss.ToCharArray();Response.Write(cc[4]);
Blocked AccountPosted Oct 20, 2008, 3:29 AM
Hi Remya,
U can initialize the array by using this code.
char[] chars = new char[] { 'a', 'b', 'c' };
Happy Coding!!