正在加载图片...
4.21字符数组的定义及初始化 1.用字符为字符数组赋初值 char userName1[4]=t e 2.用字符串为字符数组赋初值 char userName2[5=tree char userName 3[10=tree char userName4LI tree 数组越界了 char userName5[4]=tree userName1I't userName2'tx'e’'e’o3 0 userName3't''r''e''e' 0 24.2.1 字符数组的定义及初始化 1. 用字符为字符数组赋初值 char userName1[4] = {'t', 'r', 'e', 'e'}; 2. 用字符串为字符数组赋初值 char userName2[5] = "tree"; char userName3[10] = "tree"; char userName4[] = "tree"; char userName5[4] = "tree"; 数组越界了
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有