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 virtual destructor? What is its use?
Should I learn c++ c?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What is stl containers in c++?
How would you call C functions from C++ and vice versa?
Does c++ have string data type?
What language is a dll written in?
When do we run a shell in the unix system?
Explain the isa and hasa class relationships. How would you implement each?
How many keywords are used in c++?
What is a unnitialised pointer?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
What is the arrow operator in c++?
Is there finally in c++?
What is the use of pointer in c++ with example?