How to define structure in C?
To define structure in C we use struct keyword. Using structure we can form different groups according to their specialty. Syntax of defining an structure are given below: struct tag_name { type member_name; type member_name; type member_name; } structure_name = {initializer_values}; Example of an structure: #include#include int main(void); int main() { int i; struct { char szSaying[129]; int nLength; } MySaying = {�Firestone�s Law of Forecasting:�, strlen(MySaying.szSaying)}; printf(�sizeof(MYSaying)=%d\n�, sizeof(MySaying)); printf(�MySaying %p%3d�%s�\n�, &MySaying.szSaying, MySaying.nLength, MySaying.szSaying); printf(�\n\n�); return (0); }