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-5d0742831100f746917508/] Output : [crayon-5d07428311017863330433/]

C Program to Calculate Size of Structure using Sizeof Operator

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