GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 68 of 258    Print  
What does static variable mean?

  
Total Answers and Comments: 2 Last Update: August 20, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 21, 2005 03:59:23   #1  
yogeshpanda Member Since: September 2005   Contribution: 50    

RE: What does static variable mean?
The variable should persist it`s value between the function calls until the program termination .
 
Is this answer useful? Yes | No
August 19, 2007 20:09:09   #2  
sai sudhakar        

RE: What does static variable mean?
In C++ variable declared as static it is shared by all the objects of the class. It can be accessed only by a static function.
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Abstract classes: They are modeled with their names in italicsStatic Members: They are modeled with an underline ...
Tags : Abstract

Latest Answer : In C++, variable declared as static it is shared by all the objects of the class. It can be accessed only by a static function. ...

Latest Answer : The static variables persist their values between the function calls and the static functions is out of the class scoop means it can be invoked without the use of the object( cab be invocked by classname::functionname). ...

Where does global, static, local, register variables, free memory and C Program instructions get stored?

Describe about storage allocation and scope of global, extern, static, local and register variables?

Latest Answer : Yes . e.g. scanf ("%10s", str ); only 10 chars would be taken in ...

Which header file should you include if you are to develop a function which can accept variable number of arguments?

Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

What is the difference between function pointer and pointer to function?why we use static variable as a global instead of defining it a local?
Read Answers (2) | Asked by : vimal gupta
Tags : Pointer

Latest Answer : It can be better explained in this way also.Thumb Rule When a copy constructor is called ? : when any object is created and it is being initialized with otherObject of same type Copy constructor  is called. Blv me this is is only one way how copy ...
Read Answers (2) | Asked by : preetha varma


 Sponsored Links

 
Related Articles

OOPS Tutorials

Object oriented programming OOP is a computer science term used to characterize a programming language that began development in the 1960’ s The term object oriented programming’ was originally coined by Xerox PARC to designate a computer application that describes the methodol
 

C++ Static Functions

C Static Functions Static member functions have a class scope and they do not have access to the this pointer of the class When a member is declared as static a static member of class it has only one data for the entire class even though there are many objects created for the class The main usage of
 

What happens when a variable is not initialized in main function?

When a variable is not initialized in main function it contains garbage value. This can be well seen from the example below main() { int x; printf(“%d”,x); z= sample() } sample() { printf(“Testing program”); } Output is   &n
 

What happens when a variable is not declared in function definition?

Generally in C program the function definition and calling takes the form as given below: main() { int x,y,z; z=sample(x,y); printf(“%d”,z); } sample(x1,y1) int x1,y1; { int z1; z1= x1 - y1; return(z1); } Here what happens is the values x, y gets passed to x1,y1
 

Variable, Constants and Data types in C++

Variable Constants and Data types in C In this C tutorial you will learn about variable constants and data types in C rules for defining variable name short int int long int float double long double char bool declaring variables and constants mosgoogle Variables A variable is the storage location in
 

Static Functions - An Introduction

Static Functions An Introduction The static member functions have a class scope and they do not have access to the this pointer of the class When a member is declared as static that is a static member of class have only one such data for the entire class even though there are many objects created fo
 

The Inheritance Concept In OOPs

The Inheritance Concept In OOPs In object oriented programming objects will be characterised by classes It is possible to learn a lot about an object based on the class it belongs to Even if you are not familiar with the name Maybach If I told you it is a car you would immediately know that it has f
 

Understanding The Message Concept In OOPs

Understanding The Message Concept In OOPs To understand object oriented programming you will need to become familiar with messages As the name implies a message is a process in which software objects will communicate with one another Because of this having one object is not enough mosgoogle An objec
 

Basic concepts of OOPS and Structure of C++ program

Basic concepts of OOPS and Structure of C program In this tutorial you will learn about Objects Classes Inheritance Data Abstraction Data Encapsulation Polymorphism Overloading Reusability Before starting to learn C it is essential that one must have a basic knowledge of the concepts of Object orie
 

Be Prepared for Tech Job Cuts

Even one of the most flourishing and possibly the strongest industries of the future are not experiencing the economic crunch. The tech industry is now experiencing massive job losses in different categories. Although you will still see innovations almost every day from the tech industry through th
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape