c语言中printf函数输出十进制、八进制和十六进制数。
1、
#include <stdio.h> int main(void) { unsigned a = 45; printf("101010 %u ", a); printf("888888 %o ", a); printf("161616 %X ", a); return 0; }