+ 10
How can be output is 12??!!!
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
+ 7
Thank you so so much.