what is static?

Answer Posted / suresh reddy

1. Static limits the scope of an object(variable) or a
function to the file in which it being compiled.
2. A static variable retains its value between function
calls, even though its a local variable.
3. Lifetime of a static variable is the entire program.
4. We can't use extern keyword for a static object.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an advantage of polymorphism?

587


What is a class in oop?

593


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1573


What makes a language oop?

591


What is and I oop mean?

613






What are the advantages of polymorphism?

571


What is difference between pop and oop?

599


What causes polymorphism?

563


What is object and example?

600


What are oops functions?

578


Is enum a class?

600


What is polymorphism what are the different types of polymorphism?

555


What is difference between data abstraction and encapsulation?

611


Why do we use inheritance?

628


hi all..i want to know oops concepts clearly can any1 explain??

1677