In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
1066How the programmer of a class should decide whether to declare member function or a friend function?
1121We 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?
1081How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
1085Post New C++ General Questions
If I is an integer variable, which is faster ++i or i++?
Why c++ is better than c language?
Is nan a c++?
What are the basics of local (auto) objects?
What are the uses of pointers?
List the advantages of inheritance.
What is the difference between passing by reference and passing a reference?
What is the difference between the compiler and the preprocessor?
Explain function overloading and operator overloading.
What is vector string in c++?
What is ostream in c++?
Explain how to initialize a const data member.
How many types of classes are there in c++?
Why is c++ is better than c?
What are the syntactic rules to be avoid ambiguity in multiple inheritance?