C语言const char*使用

#include<stdio.h>
const char*name = "hello audio";
char*usb_name = "ac usb string descriptor";
int main()
{
   name = usb_name;
  // name[0] = 'a';
   printf("name is %s\n",name);

    return 0;
}

  

posted @ 2020-10-13 22:32  卷哭你  阅读(1318)  评论(0编辑  收藏  举报