ShriRam Changed status to publish July 16, 2022
#include<stdio.h> #include<stdio.h> union Data { int i; float f; char str[20]; }; main( ) { union Data d1; d1.f = 220.5; strcpy( d1.str, "C Programming"); d1.i = 10; printf( "data.f : %f\n", d1.f); printf( "data.str : %s\n", d1.str); printf( "data.i : %d\n", d1.i); }
ShriRam Changed status to publish July 16, 2022