+ 1

what does it do

what does the %ld do ?

28th May 2020, 6:04 PM
abderrahmen sallem
abderrahmen sallem - avatar
2 ответов
+ 3
%ld is a format specifier for long int type.This is implemented with printf() function for printing the long integer value stored in the variable. Thank You ☺️
28th May 2020, 6:40 PM
Hacker Badshah
Hacker Badshah - avatar
+ 3
It is the format specifier for a long signed integer. It is often (mis)used to print the size of an object or variable pre-C99. Use %ld when you want to print long integers that can be both positive and negative and won't fit in an int.
28th May 2020, 6:51 PM
Gen2oo
Gen2oo - avatar