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-628f6574d786b505988131/] Output : [crayon-628f6574d7873569023087/]

C Program to Calculate Size of Structure using Sizeof Operator

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