Skip to content
Home » Double specifier in C

Double specifier in C

Let’s start the discussion about Double specifier in C in following Approaches.

During input and output, the format specifier is utilised. It tells the compiler what type of data is in a variable when taking input with scanf() or printing with printf() . Examples are percent c, percent d, and percent f. The format specifiers in printf() and scanf() are basically the same, but there are some differences that we’ll go over.

C double specifier

#include 

int main()
{
   double d = 1.4;
   printf("%lf", d); // Is this wrong?
}

I hope the strategies listed above work for you. Happy coding and come back again.

Similar Post : Bitwise integer absolute value in C