printf()打印char* str

printf("%c\n",*str);//输出首字符

printf("%s\n",str);//输出整串字符

printf("%p\n",str);//输出字符串首字符地址

printf("%p\n",&str);//输出指针str的地址

posted @ 2013-05-03 09:07  米其林轮船  阅读(14859)  评论(0编辑  收藏  举报