+ 1
what does it do
what does the %ld do ?
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 ☺️
+ 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.