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
Is map thread safe c++?
Can you please explain the difference between using macro and inline functions?
What is the auto keyword good for in c++?
What are namespaces in c++?
Why is c++ not purely object oriented?
What is the difference between set and map in c++?
What is the role of static keyword for a class member variable?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
What is the need of a destructor? Explain with the help of an example.
Differentiate between a pointer and a reference with respect to c++.
What are the two main components of c++?
What is the difference between ++ count and count ++?
What is virtual destructor ans explain its use?
Explain the properties and principles of oop.
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.