简答判断题
👁️ 浏览量:

试题题干

设char str[]="book\n";,执行语句printf("%d",sizeof(str));后的输出结果是

参考答案

试题解析

函数sizeof()是测量数据类型所占用的内存字节数,因为char str[]="book\n";,执行语句printf("%d",sizeof(str));后的输出结果是str()的长度为6。