Format specifier x

前端 未结 4 823
离开以前
离开以前 2021-02-01 15:19

I have a simple program :

#include 
int main()
{
        long i = 16843009;
        printf (\"%02x \\n\" ,i);
}

I am using

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-01 15:30

    Your string is wider than your format width of 2. So there's no padding to be done.

提交回复
热议问题