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;

Computer Science & Information Technology

You might also like to view...

A compound statement is enclosed between:

a. [ ] b. { } c. ( ) d. < >

Computer Science & Information Technology

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

Computer Science & Information Technology

You cannot copy a macro from one document to another

Indicate whether the statement is true or false

Computer Science & Information Technology

How can you crop a video clip?

What will be an ideal response?

Computer Science & Information Technology