Why do we have to only %f but not %d in the execution of?
#include <stdio.h>
#include <math.h>
int main()
{ printf("%f", sqrt(16));
return 0;
}
I just kept %d in place of %f then I got some error while compiling
New contributor
Katastrophi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.