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


Please Help Members By Posting Answers For Below Questions

What is meant by multiple inheritance?

742


How to use CMutex, CSemaphore in VC++ MFC

4333


What is difference between inheritance and polymorphism?

575


How do you answer polymorphism?

580


What is interface in oop?

664






write string class as your own class in java without using any built-in function

1980


What is basic concept of oop?

702


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.

2578


What is the purpose of enum?

585


Can destructor be overloaded?

601


Can a destructor be called directly?

607


why reinterpret cast is considered dangerous?

1906


What are the important components of cohesion?

557


2. Give the different notations for the class.\

1594


Why do we need oop?

671