Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
%ld is just a format specifier. It can hold values greater than that of integer type. If you want to find the size of long int then you can put sizeof(long int) and it will return 8.
6th Nov 2020, 1:57 PM
Avinesh
Avinesh - avatar