标签:style blog http io ar color 使用 sp div
1 #include <stdio.h> 2 #include <string.h> 3 4 int main() 5 { 6 char name[8] = "itcasasa"; //error C2117: ‘itcasasa‘ : array bounds overflow 7 char name2[] = {‘o‘, ‘k‘}; 8 printf("%s\n", name); 9 10 return 0; 11 }
#include <stdio.h> #include <string.h> int main() { char str[] = "123\0"; printf("%d\n", strlen(str)); //输出 3 return 0; }
标签:style blog http io ar color 使用 sp div
原文地址:http://www.cnblogs.com/hyhl23/p/4163057.html