i want know the different format or how many types of float are used in C language? please explain with example.... Thanks
float double long double here is small program for you #include <stdio.h> int main() { float f; double d; long double ld; printf ( "float : %4d bytes\n" "double : %4d bytes\n" "long double : %4d bytes\n" , sizeof(float), sizeof(double), sizeof(long double) ); return 0; } Code (markup):
Am I right in saying that a double must have a decimal point where as a float is floating point so doesn't?