How do you access a structure member?

1 answer

Answer

1008759

2026-07-25 06:30

+ Follow

we can access and assign values of the members of a structure in a number of ways. as mentioned earlier, the members themselves are not variables .they should be linked to the structure variables in order to make them meaningful members . for example the Word title , has no meaning whereas the phrase 'title of book3' .the link between a members and a variable is established using the members operator '.' which is also known as 'dot operator ' or ' period operator '.

for example , book.price

is the variable representing the price of book1 and can be treated like any other ordinary variable

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.