+ 2

What is meant by %1d in c programming

11th May 2020, 11:32 AM
Tejas Pattanshetti
Tejas Pattanshetti - avatar
3 Antworten
+ 2
%1d I don't know but we use %.1f so that only one digit after decimal point
11th May 2020, 1:02 PM
Bensen
+ 2
hmm... i have only seen %2d and above for printf() format specifier, but %1d in scanf() function allow it to only accept one digit, so maybe that is it?
11th May 2020, 1:14 PM
Gen2oo
Gen2oo - avatar
+ 1
%ld this formatspace can uses of long & Double data type
11th May 2020, 1:10 PM
Ashok Rathod
Ashok Rathod - avatar