I can never understand how to print unsigned long
datatype in C.
Suppose boo
is an unsigned long
, then I try:
printf("%lu\n", unsigned_boo)
printf("%du\n", unsigned_boo)
printf("%ud\n", unsigned_boo)
printf("%ll\n", unsigned_boo)
printf("%ld\n", unsigned_boo)
printf("%dl\n", unsigned_boo)
And all of them print some kind of -123123123
number instead of unsigned long
that I have.
I can't figure it out, can you help me?
Thanks, Boda Cydo.