What happens if you have two lists (list1, list2), no assignment operator in your class, and attempt to execute the following statement?

list1 = list2;
a. you have a syntax error
b. you get a complete and identical copy of list2 into list1
c. list1 and lsit2 now name the same list
d. no problem


c. list1 and lsit2 now name the same list

Computer Science & Information Technology

You might also like to view...

What is wrong with this code?

``` int ShowMeTheMoney() { int cents, dollars; cout << “\n Enter dollars and cents”; cin >> dollars , cents; return (dollars,cents); }``` A. You can’t have a comma in the cin statement. B. You can’t have a comma in the return statement. C. Both A & B. D. There is nothing wrong with it.

Computer Science & Information Technology

What techniques are used by vendors to achieve 2x mode for transmissions?

A. combining frequency channels B. using different coding rate schemes C. increasing and reallocating the individual carriers D. All of the above

Computer Science & Information Technology

The deque class push operation can be created using the deque class's ____ method.

A. push_front() B. pop_front() C. back() D. pop_back()

Computer Science & Information Technology

The ____ in a binary tree is the number of branches on the path from the root to the node.

A. depth of a node B. height of a tree C. size of a node D. level of a node

Computer Science & Information Technology