How to printf “unsigned long” in C?

后端 未结 7 595
有刺的猬
有刺的猬 2020-11-28 01:08

I can never understand how to print unsigned long datatype in C.

Suppose unsigned_foo is an unsigned long, then I try:

7条回答
  •  醉话见心
    2020-11-28 01:20

    The format is %lu.

    Please check about the various other datatypes and their usage in printf here

提交回复
热议问题