Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is a ststic variable and stiticfunction
briefly explain with exmple and in which case we use

Answer Posted / subhashish sen

When a variable is declared with static keyword,its called
as static variable,means it retains its value across
different function calls.Its basically used for counting no
of objects created for a class in C++ and its initialized to
0 by default.

When a function declared as static,its called as static
function.It can only operate on static variables.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is for loop and its syntax?

1033


Can you inherit a private class?

1057


What is overloading in oops?

1091


Is data hiding and abstraction same?

966


What is the renewal class?

2685


how to get the oracle certification? send me the answer

2100


Plese get me a perfect C++ program for railway/airway reservation with all details.

3838


Is enum a class?

1002


What is destructor oops?

1032


what is graphics

2402


what is the drawback of classical methods in oops?

3315


What are different oops concepts?

999


What is polymorphism and why is it important?

981


What is destructor in oop?

984


What is the important feature of inheritance?

1068