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?
1119We 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
How can you differentiate between inheritance and implementation in c++?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
Write a Program to find the largest of 4 no using macros.
What is command line arguments in C++? What are its uses? Where we have to use this?
What does flush do c++?
Explain what is polymorphism in c++?
What is the error in the code below and how should it be corrected?
What is an incomplete type in c++?
What is the difference between structure and class?
Do you know the problem with overriding functions?
Are c and c++ different?
Describe new operator and delete operator?
Who calls main function?
Is c++ an oop?
What is nested class in c++?