#include<stdio.h>
#include<conio.h>
void main()
{
float a=6;
clrscr();
printf("%d",a);
getch();
}
here the output is some garbage value.here the error lies in %d instead of %f.for float value the identifier is f.is this the proper answer of my question?