Check out example codes for "Structure of Structs in c". It will help you in understanding the concepts better.

Code Example 1

#include <stdio.h>
#include <string.h>
struct student_college_detail
    int college_id;
    char college_name[50];
struct student_detail 
    int id;
    char name[20];
    float percentage;
    // structure within structure
    struct student_college_detail clg_data;
int main() 
    struct student_detail stu_data = {1, "Raju", 90.5, 71145,
                                       "Anna University"};
    printf(" Id is: %d \n",;
    printf(" Name is: %s \n",;
    printf(" Percentage is: %f \n\n", stu_data.percentage);
    printf(" College Id is: %d \n", 
    printf(" College Name is: %s \n", 
    return 0;

Code Example 2

struct [structure_tag]
    //member variable 1
    //member variable 2
    //member variable 3

Code Example 3

The basic structure

Learn ReactJs, React Native from