/*#include<stdio.h> #include<string.h> typedef union { int i; char c; }UN; int main() { UN un; un.i=1; if(un.c==1) printf("little\n"); else printf("big\n"); system("pause"); return 0; }*/ /*#include<stdio.h> int check_bit() { int i=1; char *p=(char *)&i; if(*p==1) return 1; else return 0; } int main() { int ret=check_bit(); if(ret==1) printf("little\n"); else printf("big\n"); return 0; }*/
时间: 2024-10-01 04:09:11