Q. What is the right way to access value of structure variable book{ price, page }? (Solved)

1. printf("%d%d", book.price, book.page);

2. printf("%d%d", price.book, page.book);

3. printf("%d%d", price::book, page::book);

4. printf("%d%d", price -->book, page -->

  • a. printf("%d%d", book.price, book.page);
Subscribe Now

Get All Updates & News