Arrays
how to initailise ,declare and assign a word to a character array?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Blocked AccountRank #403 · 6.2K reputationPosted Oct 19, 2008, 11:29 PM EDT
Hi Remya,
U can initialize the array by using this code.
char[] chars = new char[] { 'a', 'b', 'c' };
Happy Coding!!
Anand ThakurRank #928 · 2.2K reputationPosted Oct 20, 2008, 1:22 AM EDT
string
ss = "Anand"; char[] cc = ss.ToCharArray();Response.Write(cc[4]);