报道
本帖最后由 Hello. 于 2020-4-19 11:36 编辑#include<stdio.h>
#define NAME "qinmuchu"
int main()
{
unsigned char a[]={'q','i','n','\0'};
printf("my last name is %s\n",a);
printf("my name is %s\n",NAME);
printf("size of unsigned char is %d",sizeof (unsigned char));
return 0;
} 大佬支持一下 支持。。。 看看 乘号 发表于 2020-4-19 08:59
支持。。。
{:10_266:} 编程鱼C 发表于 2020-4-19 09:04
看看
挖挖挖,就知道挖{:10_256:} my last name is qin
my name is qinmuchu
size of unsigned char is 1
/usercode/file.cpp: In function ‘int main()’:
/usercode/file.cpp:8:68: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
printf("size of unsigned char is %d",sizeof (unsigned char));
^
Your name is qinmuchuSo in Chinese 覃?or 芩?or 秦?
页:
[1]