class HasStatic {
static int I;
};
Referring to the sample code above, what is the appropriate
method of defining the member variable "I", and assigning it
the value 10, outside of the class declaration?
a) HasStatic I = 10;
b) int static I = 10;
c) static I(10);
d) static I = 10;
e) int HasStatic::I = 10;
Why cout is used in c++?
Why do you use the namespace feature?
Explain working of printf?
How do you allocate and deallocate memory in C++?
Explain the concept of copy constructor?
Who calls main function?
What is format for defining a structure?
Which of the following operator cannot be overloaded?
How to avoid changing constant values?
What is the c++ programming language used for?
When do we run a shell in the unix system? How will you tell which shell you are running?
What are the different types of polymorphism in c++?