Structures

What do you mean by Structures? Explain in brief?

E

Expert

Verified

Structure refers to the heterogeneous collection of the elements which are referenced by the same name. A structure is declared by using the “struct” keyword.

Following is an example that creates a structure to store the employee's information:

struct emp
{
 fixed int empID[15];
 fixed char name[30];
 fixed char addr[50];
 fixed char dept[15];
 fixed char desig[15];
}

The above instance defines a structure emp and members of this structure specifies the information about the employee.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.