C语言查看变量字节程序
C语言查看变量字节程序
C语言查看变量字节程序
#include<stdio.h>
typedef unsigned char* byte_pointer;
void show_bytes(byte_pointer start,int n){
int i;
for(i=0;i<n;i++){
printf("%.2x",start[i]);
}
printf("\n");
}
C语言查看变量字节程序
#include<stdio.h>
typedef unsigned char* byte_pointer;
void show_bytes(byte_pointer start,int n){
int i;
for(i=0;i<n;i++){
printf("%.2x",start[i]);
}
printf("\n");
}
评论暂时关闭