Which operator is used to access the elements of a structure? Write its syntax and example.
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;