In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
1138How the programmer of a class should decide whether to declare member function or a friend function?
1181We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
1142How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
1127Post New C++ General Questions
When you overload member functions, in what ways must they differ?
Why do we need constructors in c++?
Is c++ platform dependent?
How do you add an element to a set in c++?
How a modifier is similar to mutator?
why is iostream::eof inside a loop condition considered wrong?
Write a function to find the nth item from the end of a linked list in a single pass.
Define basic type of variable used for a different condition in C++?
What is wrapper class in c++?
Differentiate between a constructor and a method in C++.
What is the use of ::(scope resolution operator)?
What language does google use?
What are references in c++? What is a local reference?
What are the various situations where a copy constructor is invoked?
How the programmer of a class should decide whether to declare member function or a friend function?