Skip to main content

Posts

Showing posts with the label Structure and Pointer

Structure and Pointer

   To store address of a structure type variable, we can define a structure type pointer variable as normal way. Let us consider an structure book that has members name, page and price. It can be declared as            struct book                  {                     char name[10];                    int page;                    float price;                     }; Then, we can define structure variable and pointer variable of structure type. This can be done as ...