Here we will write a C programs in this program we have to declare some variables of type int, float and double. also we have to Assign some values to these variables and display these values on the output screen.
int: An int variable is used to store an integer.
float: It is used to store decimal numbers (numbers with floating point value) with single precision.
double: It is also used to store decimal numbers (numbers with floating point value) like float but with double precision.
%d, %f and %lf are known as format specifier. format specifier is used in program during input and output. It is a way to tell the compiler what type of data variable can hold during taking input using scanf() or what type of data available in the variable for printing variable using printf()
0 Comments