+ 6
code explain needed
I couldn't understand that how the value of n remains in this code https://code.sololearn.com/c9PA1zQfGFr0/?ref=app
8 odpowiedzi
+ 2
~ swim ~ hello master😊
+ 2
thank you master ~ swim ~ I got it
+ 1
lion ofcourse I did , I think these are two variables not one aren't?
+ 1
I think I understood that but if at every call a new object is created how does n retrieve its value
0
I hope you noticed there are two n, one in main() and one in the first lambda returned by the function sequence().