int main()
{//freopen("input.txt","r",stdin);char s[]="123456\0";PRINT(sizeof(s));PRINT(s);return 0;
}
输出:
8
123456
内存中存放的是:
1 2 3 4 5 6 \0 \0
int main()
{//freopen("input.txt","r",stdin);char s[]="123456\0";PRINT(sizeof(s));PRINT(s);return 0;
}
输出:
8
123456
内存中存放的是:
1 2 3 4 5 6 \0 \0