Latest Answer: Dangling pointer leads the memory leak problems. The following circumstances are memory leak ( dangling pointers ), not for good programming practice , try to avoid1) Try to avoid the empty object pointer creation2) Memory allocation without de allocation.3) ...
How can I instantiate only three instances of an application ?If I open 4th instance, I have to close 1st instance like wise if I open 5th one I have to close 2nd one automatically ?
Write a program to find prime numbers using pointers2)Write a program to check armstrong numbers using pointers
Latest Answer: Disadvantage:- You cann't create object of that particular class.Advantage:- you can bound the user to use the static function of that class to create the object so that your function can keep track of all the objects created ,according to the ...
Latest Answer: In c/c++ programming languages 'header' files contains forward DECLARATION of functions, variables and other identifiers. Identifiers that are used more then once in source files are placed in header files, these header files can then be included ...
Latest Answer: Depends ,cpp is just like c with advanced (OOPS) features........Still it depends on the complexity of the program ! If we are using many advanced concepts of cpp in the code like inheritance , polymorphism and most importantly virtual functions then ...
Latest Answer: Destructors in C++ need not be called explicitly. The destructor for a class whether one has defined it or not gets called automatically and all objects associated with the class gets destroyed in the order of descending appearance in the class. ...
Is it possible to implement Polymorphism (either compile time / runtime) in “C” ? If yes how?
For Polymorphism, which technique is a perfect example in C++?1. Function / Operator Overloading2. Virtual Functions3. Template
View page << Previous 1 2 [3] 4 5 Next >>

Go Top