C语言const char*使用

时间:2020-10-14 20:06:07   收藏:0   阅读:34
#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;
}

  

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!