对错错对错错对对对
对
错 break 为提前结束循环 continue 为提前返回循环判断
错 任何循环都能用
对
错 int a[6]中并不存在a[6] size 取值范围为0-5
错 a[2][3] 为第三行第4个元素
错 不可以使用关系表达式因为字符数组为ascii不是数字
错 在C中是线性顺序在C++中按行存放
对
char *strcpy(char *strDest, const char *strSrc);
{
assert((strDest!=NULL) && (strSrc !=NULL));
char *address = strDest;
while( (*strDest++ = * strSrc++) != ‘\0’ )
NULL ;
return address ;
}