The structure is a keyword that is used to create user-defined data types. The structure allows storing multiple types of data in a single unit. The structure members can only be accessed through the structure variable.
Sandhya Answered question June 26, 2023
A structure is defined using the keyword “struct” with the name “employee”. It has two member variables – an integer “id” and a character array “name” of size 50. Next, a structure variable “e1” is declared for the “employee” structure.
Sandhya Answered question June 26, 2023
