C语言:printf*("%x")
标签:src com c语言 std world return print get jpg
#include int main(){
int a = 100;
char str[20] = "hello world!";
char *zza = "hello world!";
printf("%#X,%#X,%#X\n", *zza, &zza,zza);
printf("%#X,%#X\n", &a, str);
printf("%X,%X\n", &a, str);
printf("%x,%x\n", &a, str);
printf("%10x,%10x\n", &a, str);
printf("%-10x,%-10x\n", &a, str);
printf("%-10p,%-10p\n", &a, str);
printf("%10p,%10p\n", &a, str);
getchar();
return 0;
}
C语言:printf*("%x")
标签:src com c语言 std world return print get jpg
原文地址:https://www.cnblogs.com/xkdn/p/14584858.html
评论