随笔

#include <stdio.h>
#include <string.h>
#include <iostream>
int main()
{
    char* p = "123";
    printf("%d
", sizeof(p));//4
    printf("%d
", strlen(p));//3
    std::cout << p + 1;//"23"
    return 0;
}
原文地址:https://www.cnblogs.com/zzyoucan/p/6250470.html