Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. What is the output, if any, of each of the following C++ statements? a. cout

ID: 3659049 • Letter: 1

Question

1. What is the output, if any, of each of the following C++ statements? a. cout <<current-> info; b. current = current -> link; cout<<current->info; c. cout<<temp->link->link->info; d. triail ->link=NULL; cout << trail -> info; e. cout<< last ->link -> info; 2. What is the value of each of the following relational expressions? a. current -> link ==temp b. temp -> link link -> info ==50 c. trail ->link -> link ==0 d. last ->link == NULL e. list = = current 3. What are the effects, if any, of each of the following C++ statements? a. trail -> link = Null; delete last; b. temp ->link = trail; c. list -> info = 19; d. current = current -> link; current -> link = temp ->link;

Explanation / Answer

d. triail ->link=NULL; cout