how to know whether a given expression is int or float in c code example
Example: check if float is integer c
float f = 4.5886;
if (f == (int)f)
printf("yes\n");
else printf("no\n");
float f = 4.5886;
if (f == (int)f)
printf("yes\n");
else printf("no\n");