标签:blog io ar 2014 log as c file har
#include <stdio.h> void main(void) { int i = 0; char str[10] = {1,2,3,4,5,6,7,8,9,10}; short *ptr = NULL; ptr = (short *)str; while(i < 10) { printf("%x\r\n",*(ptr+i)); i++; } return ; }
不上机运行,输出结果:
标签:blog io ar 2014 log as c file har
原文地址:http://blog.csdn.net/u012377333/article/details/41011365