C Program to Calculate Size of Structure using Sizeof Operator


Program : Calculate Size of Structure in C Programming

Explanation :

  1. Structure is Collection of elements of the Different data Types.
  2. Size of the Structure Can be Evaluated using “sizeof Operator”

Formula for Calculating Size of Structure :

Remember :

  • Sizeof is Operator not function
  • Sizeof Operator Takes any Variable as Parameter.