0

"%ld"

why the format specifier is %ld printf("int: %ld \n", sizeof(int)); printf("float: %ld \n", sizeof(float)); printf("double: %ld \n", sizeof(double)); printf("char: %ld \n", sizeof(char));

5th Feb 2020, 7:10 AM
Lakshmi Reddy Sanikommu
Lakshmi Reddy Sanikommu - avatar
2 Answers
+ 1
ld stands for long decimal
5th Feb 2020, 7:45 AM
KnuckleBars
KnuckleBars - avatar
5th Feb 2020, 10:45 AM
Ipang