Accessing Structure Members :-
Structure members can't be accessed like other variables. Structure member can be accessed using structure variable.
Syntax :
Structure-variable.member-name
Example :
e.eid=101;
where 'e' represents structure variable and 'eid' is a member of structure.
Structure members can't be accessed like other variables. Structure member can be accessed using structure variable.
Syntax :
Structure-variable.member-name
Example :
e.eid=101;
where 'e' represents structure variable and 'eid' is a member of structure.
Comments
Post a Comment