Which of the following prints the address of character string string given the following declaration?

char* string{"test"};
a. cout << string;
b. cout << *&string;
c. cout << static_cast(string);
d. cout << *string;

c. cout << static_cast(string);

Computer Science & Information Technology

You might also like to view...

The ________ in OneNote displays the name of each page in the active section

A) Page tabs list B) Section tab C) Notebook navigator D) page

Computer Science & Information Technology

PCI-X is replaced with

A) AGP B) USB C) PCI-Y D) PCIe

Computer Science & Information Technology