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

  • (A) printf("%d%d", book.price, book.page);
  • (B) printf("%d%d", price.book, page.book);
  • (C) printf("%d%d", price::book, page::book);
  • (D) printf("%d%d", price->book, page->book);
πŸ’¬ Discuss
βœ… Correct Answer: (A) printf("%d%d", book.price, book.page);

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
263
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
93%
Success Rate