正在加载图片...
标识符的命名规定 只能由大小写字母、下划线和数字组成; 开头的第一个字符只能是大小写字母或下划线; 大小写是敏感的; 不能与C的关键字重复; 名字在整个程序中必须是唯一的; 名字的长度不能超过系统的规定。 合法的C变量名: 非法的C变量名: area,sum, answer, month,,3 3rd entry(数字开头) name, Name,,Step1,step2, allston(包含非法字符$) number of student the end(包含空格) average_ score, class1 int (系统关键字)标识符的命名规定 ▪ 只能由大小写字母、下划线和数字组成; ▪ 开头的第一个字符只能是大小写字母或下划线; ▪ 大小写是敏感的; ▪ 不能与C的关键字重复; ▪ 名字在整个程序中必须是唯一的; ▪ 名字的长度不能超过系统的规定。 合法的C变量名: area, sum, answer, month, name, Name, Step1, step2, number_of_student, average_score, _class1 非法的C变量名: 3rd_entry (数字开头) all$done (包含非法字符$) the end (包含空格) int (系统关键字)
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有