Q. Consider the following code snippet : The state stored in d is :
Code:
var c = counter(), d = counter(); c.count() d.count() c.reset() c.count() d.count()
β
Correct Answer: (A)
1
var c = counter(), d = counter(); c.count() d.count() c.reset() c.count() d.count()
You must be Logged in to update hint/solution