#include <stdio.h>
int main() {
// 打印字符串"Hello, World!"的大小
// 在C++中,字符串是一个以'\0'结尾的字符数组,所以其大小是字符数量加一
printf("%d", sizeof("Hello, World!"));
// main函数结束,返回0表示程序正常执行完毕
return 0;
}
Informatics Olympiad 1023: The size of Hello, World! C language is not C++
Guess you like
Origin blog.csdn.net/weixin_44738632/article/details/134975668
Recommended
Ranking