Can any1 explain the use of static keyword? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can any1 explain the use of static keyword?

12th Apr 2016, 10:18 AM
Tanvi Singhal
Tanvi Singhal - avatar
2 Answers
0
sometimes we want a local variable NOT to be deleted. We need it for a further job. To do this, use the static keyword when you first declare the variable:
28th Apr 2016, 6:53 PM
sourabh kale
sourabh kale - avatar
0
Static keyword use for access variable in any fuction and any statement.mean to give access in all place we use static along wid variabke
16th Jun 2016, 4:46 AM
Balram Patidar
Balram Patidar - avatar