C program to Use structure within union & display the contents of structure elements

Problem Statement :Create one Structure and declare it inside union.Then accept values for structure members and display them. Write a program to use structure within union , display the contents of structure elements [crayon-609410c73850b613276694/] Output : [crayon-609410c738512255881445/]

C Program to Calculate Size of Structure using Sizeof Operator

Program : Calculate Size of Structure in C Programming [crayon-609410c738877139368226/] Explanation : Structure is Collection of elements of the Different data Types. Size of the Structure Can be Evaluated using "sizeof Operator" [crayon-609410c73887e437897663/] Formula for Calculating Size of Structure : [crayon-609410c738881111200993/] Remember : Sizeof is Operator not function Sizeof Operator Takes any Variable as Parameter.