如何在C中打印f“ unsigned long”?
我永远无法理解如何unsigned long在C中打印数据类型。 假设unsigned_foo是unsigned long,那么我尝试: printf("%lu\n", unsigned_foo) printf("%du\n", unsigned_foo) printf("%ud\n", unsigned_foo) printf("%ll\n", unsigned_foo) printf("%ld\n", unsigned_foo) printf("%dl\n", unsigned_foo) 所有这些都打印出某种-123123123数字,而不是unsigned long我的数字。