i wrote the following program
#include main() { int i = 2; float c = 4.5; printf(\"%d\\n\",c); printf(\"%f\\n\",i); return 0; }
Basically, format controls replace the placeholder according to specified data type.
%d
int
%f
double
So Good way of doing this is
#include int main(){ int i = 2; float c = 4.5; printf("%d\n",i); printf("%f\n",c); return 0; }