Friday, July 31, 2009

What is the conversion specifier for a double data type in C language?

In C we are using "%d" for integer, "%f" for float values. Similarly what is to be used for a data of type double ?

What is the conversion specifier for a double data type in C language?
int x=5;


double y= (double)x ;


No comments:

Post a Comment