Write a simple program that converts one given data type to another using auto conversion and casting. Take the values form standard input. code example
Example 1: type change in c
#include <stdio.h>
main() {
int sum = 17, count = 5;
double mean;
mean = (double) sum / count;
printf("Value of mean : %f\n", mean );
}
Example 2: how to cast in c programming
(new_type) name_var;