where to use %d , %f ,%lf and% 2lf in c programming?
Answers
Answered by
12
Answer:
Hope this helps you
Explanation:
%.2lf is used of long double it is a format specifier used in C language. .2 is used for controlling the width of the decimal places.
%.2lf is used of long double it is a format specifier used in C language. .2 is used for controlling the width of the decimal places.long double has 15 decimal places default width but we can control it by placing the number after the dot Ex %.4lf ( it will restrict the decimal places to 4 digit only )
Similar questions