编译警告信息
code.c: In function 'main':
code.c:3:13: warning: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
int str="Hello, World!";
^~~~~~~~~~~~~~~
code.c:4:14: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
printf("%s\n",str);
~^ ~~~
%d
code.c:4:14: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
printf("%s\n",str);
~^ ~~~
%d