标签:color eof abc for nbsp size_t print size use
1.
# include<stdio.h>
# include<stdlib.h>
void main(){
char l_c[ ]={‘A‘, ‘B‘,‘C‘,’D‘,0x45}
int length= sizeof(l_c)/sizeof(char);
for(size_t i=0, i<length:i++){
printf("%c",l_c[i]);
}
system("pause"),
}
2.
# include<stdio.h>
# include<stdlib.h>
void main(){
char l_c [ ]={"ABCDE"};//char l_c[ ]={‘A’,‘B‘,‘C‘,‘D‘,‘E‘,0x00};
printf("%s",l_c);
system("pause");
}
标签:color eof abc for nbsp size_t print size use
原文地址:http://www.cnblogs.com/lenaben/p/7148137.html