printf语句中包含'\0'字符的处理

printf语句中包含'\0'字符的处理

1 #include <stdio.h>
2 
3 int main (void)
4 {
5     printf("helloxx\0xxworld\n");
6     printf("\n------------\n");
7     printf("hello%sworld\n", "xx\0xx");
8 }

 

posted @ 2014-08-08 00:03  挨踢淫才  阅读(1602)  评论(0编辑  收藏  举报