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...
A compound statement is enclosed between:
a. [ ] b. { } c. ( ) d. < >
Algorithms must always
a. produce output b. produce output or state that there is no solution c. produce input or state that there is no solution d. state that there is no solution
You cannot copy a macro from one document to another
Indicate whether the statement is true or false
How can you crop a video clip?
What will be an ideal response?