📜  创建 char 数组 c# 代码示例

📅  最后修改于: 2022-03-11 14:49:01.291000             🧑  作者: Mango

代码示例1
char[] arr = new char[5];

arr[0] = 'a';
arr[1] = 'b';
arr[2] = 'c';
arr[3] = 'd';
arr[4] = 'e';

//OR
char[] arr = new char[] {'a', 'b', 'c', 'd', 'e'};