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
Why null pointer is used?
Explain what happens when a pointer is deleted twice?
Explain how the virtual base class is different from the conventional base classes of the opps.
Explain what is polymorphism in c++?
Can a Structure contain a Pointer to itself?
What is encapsulation in c++ with example?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
What are associate containers?
Define a nested class. Explain how it can be useful.
When can I use a forward declaration?
What is the real purpose of class – to export data?
Define anonymous class.
What is the difference between while and do while loop? Explain with examples.
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
Can you write a function similar to printf()?