struct struct_name struct_var {constant constant constant }for examplewe can initialize student structure by writingprogramming tip struct student int r_nochar name[ ]char course[ ]float fees}stud { "rahul""bca" }it is an error to assign structure of one type to structure of another type orby writingstruct student stud { "rahul""bca" }figure illustrates how the values will be assigned to individual fields of the structure struct student stud "rahul""bca" struct student stud "rajiv"}} rahul bca rajiv \ r_no name course fees r_no name course fees figure assigning values to structure elements when all the members of structure are not initializedit is called partial initialization in case of partial initializationfirst few members of the structure are initialized and those that are uninitialized are assigned default values accessing the members of structure each member of structure can be used just like normal variablebut its name will be bit longer structure member variable is generally accessed using (dotoperator the syntax of accessing structure or member of structure can be given asstruct_var member_name the dot operator is used to select particular member of the structure for exampleto assign values to the individual data members of the structure variable studlwe may write stud r_no stud name "rahul"stud course "bca"stud fees to input values for data members of the structure variable stud we may write scanf("% "&stud r_no)scanf("% "stud name)similarlyto print the values of structure variable stud we may write printf("% "stud course)printf("% "stud fees)memory is allocated only when we declare the variables of the structure in other wordsthe memory is allocated only when we instantiate the structure in the absence of any variablestructure definition is just template that will be used to reserve memory when variable of type struct is declared once the variables of structure are definedwe can perform few operations on them for examplewe can use the assignment operator (=to assign the values of one variable to another