<分区>
我正在处理字符串。
每当我执行以下程序时,我都会收到一个错误,因为 deprecated conversion from string constant to 'char' in c* on the line char *p = “你好”
我做错了什么?
这个错误是什么意思?我该如何更正它?
我的代码是:
#include<stdio.h>
int main()
{
char *p = "hello";
printf("%s",p+1);
return 0;
}