main function?
main.c?
printf function? Why do you need to do this?
printf function?
stdio.h?
#include<stdio.h>?
printf
function (the more possibilities you name, the better)?
int,
float,
double,
long double,
double complex,
long double complex;
printf function.
creal (double),
creall (long double),
cimag (double), and
cimagl (long double)
functions. complex.h
defines the imaginary unit as I. man 3 printf
although the abovementioned wikipedia article https://en.wikipedia.org/wiki/Printf
is probably a bit more readable.float, double, and long double
hold in them by trying to store the number
0.7777777777777777777777777777
in the variable and then printing out what is stored. The long
double number must end with L:
long double x = 0.7777777777777777777777777777L;
otherwise it will be considered as double and truncated. Print numbers
with formats placeholders "%.20g" for float, "%.20lg" for double,
"%.20Lg" for long double.