Question: Problem7. In the code segment list int data =[0,2,5,79); auto foobar - data.begin0: for( ; foobar ! = data. end() if (.foobar % 2-1) foobar

Problem7. In the code segment list int data =[0,2,5,79); auto foobar - data.begin0: for( ; foobar ! = data. end() if (.foobar % 2-1) foobar = data.erase(foobar): else ++foobar The type of foobar is 1. a) int 2. blunknown 3. cla nullpt 4. d) listsint>:iterator 5. e) none of these Problem 8. In the previous code the list will end up 1. a)empty 2. b)having 5 elements 3. c) having 3 elements 4. d)having 2 elements 5. e) having 8 elements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
