Using the definition below, which of the following declares a variable of struct type book with title “War & Peace” and price 27.99.
struct book {
string title;
float price;
};
book myBook;
title = “War & Peace”;
price = 27.99;
b) book myBook;
myBook.title = “War & Peace”, price = 27.99;
c) book myBook;
myBook[title] = “War & Peace”;
myBook[price] = 27.99;
d) book myBook;
myBook.title = “War & Peace”;
myBook.price = 27.99;
d) book myBook;
myBook.title = “War & Peace”;
myBook.price = 27.99;
You might also like to view...
Computer assets are the focus of information security and are the information that has value to the organization, as well as the systems that store, process, and transmit the information. ____________
Answer the following statement true (T) or false (F)
Users need to work with a developer's kit to compile a JavaScript program.
Answer the following statement true (T) or false (F)