So, my question is, when I try to use %d as a format specifier and print 'a', which is a floating value, I get the answer as 0. I want to know why that is so.
#include<stdio.h>
#include<conio.h>
void main()
{
float a = 3.5;
clrscr();
printf("The value of a is:%d",a);
getch();
}