+ 3
What is %ld
What is %ld
3 ответов
+ 6
That's a format for long decimal. It is used in c and other languages for printing "long" data types.
This question and answer is related:
https://stackoverflow.com/questions/38561/what-is-the-argument-for-printf-that-formats-a-long
+ 1
Ok thx
+ 1
Hey Surya Raj
The intent is that short and long should provide different lengths of integers where practical;
int will normally be the natural size for a particular machine. short is often 16 bits long, and int either 16 or 32 bits. longs are at least 32 bits, and short is no longer than int, which is no longer than long.