Answers for "correct way to assign values to variable c when int a=12 float b=3.5 int c"

C
0

int to float c

float percentage;
percentage = (float)number/total * 100;
Posted by: Guest on November-25-2020
0

How to set bit in float number in C

int32_t i = 0x7FC00000;
float f;
memcpy(&f, &i, sizeof(f));
Posted by: Guest on April-17-2022

Code answers related to "C"

Browse Popular Code Answers by Language