What does the keyword "static" mean?

Answers were Sorted based on User's Feedback



What does the keyword "static" mean?..

Answer / subhashish sen

static keyword is used with both variables and
functions.when a static variables means it retains its value
for different function calls and in C++ this variable is
used mainly for counting no. of objects of a class and it is
not confined to a particular object and for static member
functions its can only manipulate static variables and a
static member function can be invoked without an object of
class.

Is This Answer Correct ?    13 Yes 0 No

What does the keyword "static" mean?..

Answer / mangai

static functions are used to retain the last assigned
value...static function creates only one copy of arguments
and uses it...

Is This Answer Correct ?    4 Yes 1 No

What does the keyword "static" mean?..

Answer / poornima.r

static means constant

Is This Answer Correct ?    0 Yes 4 No

What does the keyword "static" mean?..

Answer / anjana priyadharshini

Static:
static is one of the key word of the language c++.static means constant

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More OOPS Interview Questions

What is virtual function?where and when is it used?

2 Answers   Sitel,


advantage and disadvantage in c++>>oops and what are the questions ask for interview in c++>>oops. could you tell me or reply me

0 Answers  


what is opps?why it is use in programming language?

2 Answers   Wipro,


Why multiple inheritance is not possible?

0 Answers  


what is the use of template classes in c++

1 Answers  






Program to check whether a word starts with a capital letter or not.

1 Answers   Infosys,


inheritence with example

1 Answers  


How do you define social class?

0 Answers  


what is the main difference between sizeof() operator in c and c++

3 Answers  


me get an assignent n its question is this 1.creat a set as in math i.ea={1,2} 2.insert element in it3. delete element don,t repeat any element 4.union 5. intersection of two sets plz help me i always pray for u n send me at ayeshawzd@hotmail.com f u have c++ how to program 5th addition then it is the 10.9 question in 10th chapter exercise

1 Answers  


State what is encapsulation and friend function?

0 Answers   BirlaSoft,


Please send ford technologies placement paper 2 my mail id

0 Answers  


Categories