Given the class definition:

class CreateDestroy
{
public:
CreateDestroy() { cout << "constructor called, "; }
~CreateDestroy() { cout << "destructor called, "; }
};

What will the following program output?

int main()
{
CreateDestroy c1;
CreateDestroy c2;
return 0;
}

a. constructor called, destructor called, constructor called, destructor called,
b. constructor called, destructor called,
c. constructor called, constructor called,
d. constructor called, constructor called, destructor called, destructor called,


d. constructor called, constructor called, destructor called, destructor called,

Computer Science & Information Technology

You might also like to view...

Give two examples of government functions that are supported by complex sociotechnical systems and explain why, in the foreseeable future, these functions cannot be completely automated.

What will be an ideal response?

Computer Science & Information Technology

Compressed files usually have a .zip file extension.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

You recently upgraded the memory on your new forensic workstation. It was working fine before the upgrade. Now, durning the boot process, the system encounters a "blue screen of death" and shuts down. You put the memory into another machine and it worked fine. Which of the following is likely to be the problem?

a. It was the wrong brand of memory. b. The new memory does not match the old memory in either speed or density. c. The memory sockets on the system board are defective. d. You didn't configure the BIOS to recognize the new memory.

Computer Science & Information Technology

Individual shapes in a SmartArt object cannot be animated separately

Indicate whether the statement is true or false

Computer Science & Information Technology