int to double c
snippet in c

type change in c

user5634

#include <stdio.h>

main() {

   int sum = 17, count = 5;
   double mean;

   mean = (double) sum / count;
   printf("Value of mean : %f\n", mean );
}

int to double c

user9833

int vIn = 0;
double vOut = (double)vIn;