Answer Posted / narendra kumar
ans 2 is correct but only a wrong thing in this is static
means it's scope exits through out the programme.it is same
as the global declaration of the object.
ex. static count=0;
++count
it will give 1
in another function we use ++count than it will give 2 not 1
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is a tuple c++?
What do you mean by global variables?
What is the difference between the functions memmove() and memcpy()?
What is the difference between global variables and static varables?
What are the manipulators in c++?
Describe linkages and types of linkages?
Explain deep copy and a shallow copy?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
Which sort does c++ use?
What should main() return in c and c++?
When do we use copy constructors?
What is constant in c++ with example?
How much maximum can you allocate in a single call to malloc()?
What is set in c++?
How many static variables are created if you put one static member into a template class definition?