Vidyalelo
C++ Programming · Q630

C++ miscellaneous

Programming · C++ Programming · question 630

Q630

Which of the following(s) is/are the correct way of assigning values to a forward_list f?

A.
f.assign({1,2,3,4,5})
B.
f.assign(10,5)
C.
both f.assign({1,2,3,4,5}) and f.assign(10,5)
Answer
D.
f.assign(1,1,1,1)

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board