+1 vote
in Class 12 by kratos

Which operator is used to access the elements of a structure? Write its syntax and example.

1 Answer

+3 votes
by kratos
 
Best answer

The accessing of data of the members is done by using the following format:

structure variable.member name for example cin>>s1.rollno>>s1.age>>s1.name>>s1.marks;

...