42 day 

C Structures

The structure in C is a user-defined data type that can be used to group items of possibly different types into a single type. The struct keyword is used to define the structure in the C programming language. The items in the structure are called its member and they can be of any valid data type. Additionally, the values of a structure are stored in contiguous memory locations.

Syntax
struct structure_name {
    data_type member_name1;
    data_type member_name1;
    ....
    ....
};

Comments

Popular posts from this blog