/******************************************************************************
Welcome to code of Lập trình - Điện tử
Series: C
Author: Nghĩa Taarabt
*******************************************************************************/
#include <stdio.h>
#include <stdint.h>
typedef union
{
float floatingpoint;
uint32_t integer;
} NumType;
int main()
{
NumType Test;
Test.floatingpoint = 4.5;
printf("Hexa format = 0x%x", Test.integer);
}