29th Mar 2021, 1:44 PM
Dhruva
Dhruva - avatar
3 Antworten
+ 9
Dhruva Pandya count is static so first fun() will print 1 and 2nd fun() will print 2 Remember static variable stores in memory so every time when you call function then count will increase by 1
29th Mar 2021, 1:47 PM
A͢J
A͢J - avatar
+ 7
Thank you so so much.
29th Mar 2021, 1:51 PM
Dhruva
Dhruva - avatar