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
When is the destructor called?
Can we use struct in c++?
How to declare an array of pointers to integer?
Which of the following is evaluated first: a) && b) || c) !
What are the different types of polymorphism in c++?
What are the four partitions in which c++ compiler divides the ram?
Can we change the basic meaning of an operator in c++?
What are iterators in c++?
What is abstraction in c++?
What is a responder chain?
Define pre-condition and post-condition to a member function in c++?
What are static and dynamic type checking?
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
Show the declaration for a pointer to function returning long and taking an integer parameter.
Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?