xxxxxxxxxx
// To get size in bytes of float variable in C initialize one of same type
float var_float = 1;
size = sizeof(var_float) //Get size of variable float in given machine
xxxxxxxxxx
#include <stdio.h>
int main() {
printf("Size of float: %lu bytes\n", sizeof(float));
return 0;
}