format-specifiers
How to printf "unsigned long" in C?
I can never understand how to print unsigned long datatype in C. Suppose unsigned_foo is an unsigned long开发者_高级运维, then I try:[详细]
2023-01-07 00:04 分类:问答format specifier for short integer
I don\'t use correctly the format specifiers in C. A few lines of code: int main() { char dest[]=\"stack\";[详细]
2023-01-01 15:26 分类:问答Alternate format specifiers for long long in C
Is there any other (alternative) format specifiers for long long in C other开发者_高级运维 than %lld which can be safely used in scanf under gcc?[详细]
2022-12-23 07:10 分类:问答Platform independent size_t Format specifiers in c?
I want to print out a variable of type size_t in C but it appears that size_t i开发者_高级运维s aliased to different variable types on different architectures. For example, on one machine (64-bit) the[详细]
2022-12-17 18:19 分类:问答What is the difference between conversion specifiers %i and %d in formatted IO functions (*printf / *scanf)
What is the difference between 开发者_运维知识库%d and %i when used as format specifiers in printf and scanf?They are the same when used for output, e.g. with printf.[详细]
2022-12-14 01:00 分类:问答