what are the disadvantages of C++?
Answer Posted / meet
There is not so strict/strong type checking in C++ like Java & C#. Pointers can be easily be misused. Dynamic memory management is error-prone because the lack of automatic garbage collection like Java & C#. There isn't bound checking on arrays. Friend functions & friend classes can be misused.
Supports stack allocated objects so results in memory wastage but provides runtime efficiency.
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is meant by multiple inheritance?
How to use CMutex, CSemaphore in VC++ MFC
What is difference between inheritance and polymorphism?
How do you answer polymorphism?
What is interface in oop?
write string class as your own class in java without using any built-in function
What is basic concept of oop?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
What is the purpose of enum?
Can destructor be overloaded?
Can a destructor be called directly?
why reinterpret cast is considered dangerous?
What are the important components of cohesion?
2. Give the different notations for the class.\
Why do we need oop?