Question: What happens in aList after the codes run? NOTE: The left side of the stylish is the list head. list alist; list ::iterator iter; alist.push_front(tom);

What happens in aList after the codes run? NOTE: The left side of the stylish is the list head.

list alist; list::iterator iter; alist.push_front("tom"); alist.push_front("sue"); iter = alist.begin(); iter++; alist.insert(iter,"dave"); alist.insert(iter,"bill");

Please choose one:

a.

"sue" "dave" "bill" "tom"

b.

"dave" "sue" "bill" "tom"

c.

"sue" "dave" "tom" "bill"

d.

"tom" "bill" "dave" "sue"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!