31st Oct 2020, 1:55 PM
Mahesh Hulyal
3 Answers
+ 7
%ld is a format specifier for long int. When an integer is too long , a long int format specifier is used.😀
31st Oct 2020, 2:04 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 3
Be more descriptive when asking a question. Reference helps http://www.cplusplus.com/reference/cstdio/scanf/ http://www.cplusplus.com/reference/cstdio/printf/ Follow this guide on posting a question 👍 https://www.sololearn.com/Discuss/333866/?ref=app
31st Oct 2020, 2:03 PM
Ipang
+ 2
It means "Long integer". For instance, if integer is 2 bytes, long integer is 4 bytes. It allows to you to use longer values
31st Oct 2020, 2:03 PM
Luciano Curti
Luciano Curti - avatar