Answer:Consider the following code snippet:
1. class sample
2. {
3. public:
4. explicit sample(float);
5. int a;………………
5. }
6. sample x=10.5;
The code will not compile. Which of the following option will solve the problem?
Options
a) Line 6 should be changed to sample x(10.5);
b) In line 4, explicit keyword should be removed
c) Both a and b
d) Either a or b
Answer : d) Either a or b