#include <stdio.h> int main() { int num = 1234; printf("%#o %#X\n",num,num); return 0; }
输出前缀要加#,16进制大写要用%#X