This program will explain the different operations that can be performed on the structure in c programming language.
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-60fb9775743d8022546112/] Output : [crayon-60fb9775743e0142241507/]
Program : Calculate Size of Structure in C Programming [crayon-60fb977574753901209399/] Explanation : Structure is Collection of elements of the Different data Types. Size of the Structure Can be Evaluated using "sizeof Operator" [crayon-60fb97757475a753737827/] Formula for Calculating Size of Structure : [crayon-60fb97757475d291678013/] Remember : Sizeof is Operator not function Sizeof Operator Takes any Variable as Parameter.