C语言输出字符,字符串的ASCII码的16进制数
C语言输出字符,字符串的ASCII码的16进制数/*file name : test.ccmd code : gcc -o test.exe test.c*/#include<stdio.h>#include<string.h>void main(){ char ch[] = {'a','d','c','d'};//数组ch[]的实际长度为 5 //printf("%d\n", strlen(ch)); for(int i = 0; i&l
原创
2020-07-22 11:55:39 ·
2256 阅读 ·
0 评论