what are the disadvantages of C++?

Answers were Sorted based on User's Feedback



what are the disadvantages of C++?..

Answer / kanthi

Well, there are many. A few to mention:
* Does not provide very strong type-checking. c++ code is
easily prone to errors related to data types, their
conversions, for example, while passing arguments to
functions.
* Does not provide efficient means for garbage collection,
as already mentioned.
* No built in support for threads.
* Gets complex when u want to develop a graphics rich
application in c++
* portability of code on various platforms, etc

Is This Answer Correct ?    135 Yes 20 No

what are the disadvantages of C++?..

Answer / ranjan

it's not pure object oriented programming language. Because
c++ doesn't support for garbage collection...Which is a
disadvantage of C++. Which is overcome by java.

Is This Answer Correct ?    129 Yes 49 No

what are the disadvantages of C++?..

Answer / rajesh patil

it is not pure object oriented language.

Is This Answer Correct ?    103 Yes 38 No

what are the disadvantages of C++?..

Answer / mandoos

persistance

Is This Answer Correct ?    77 Yes 43 No

what are the disadvantages of C++?..

Answer / srikaanth

It is not pure object oriented programming language.
not platform independent.

Is This Answer Correct ?    60 Yes 26 No

what are the disadvantages of C++?..

Answer / thananjayan

C++ Disadvantages:
1.It doesn't support to create GUI oriented S/W easily
2.It can't run all the PLATFORM(WINDOWS,UNIX,etc.)
3.It create .OBJ format,when it compiling so easy to HACKING
4.Storage of our application is so poor,bcoz it having file
concept only not DATABASE
5.Poor in Multitasking

Is This Answer Correct ?    54 Yes 25 No

what are the disadvantages of C++?..

Answer / madhava rao

1.it is not secure
2.it is not simple
3.it is not platform independent
sucure:
beacuse c++ contains
->pointers
->friend functions
->globla variables
i am trying to prove it programaticaly;
ex:
#include<iostream.h>
#include<conio.h>
class A
{
int a;
void add();
{
a=45;
cout<<a;
}
};
void main()
{
clrscr();
// hear i am try ing to create new bolck

{
// in side this block i am trying to create an object of
//type "A"
A obj;
obj.add();
// hear we may think that "obj" life has ended
}
//hear i am trying to create an pointer variable of type "A"
A *p;
// hear i am tryint to call a method to the pointer of
//tyep "A"
//with out assign any address
p->add();//it works
// than where is the security for u r "obj" already life
//edned
}
NOTE:
i cal prove the remain things also with programatically
pls contact: SoftTech computer Education,new mig,bhel hyderabad,
cell:91-9291543127
mail id: madhav_rao34@yahoo.in

Is This Answer Correct ?    17 Yes 10 No

what are the disadvantages of C++?..

Answer / jaffar

hi guys,above every said C++ is not fully object oriented
language , not support ENCAPSULATION and not platform
independent.

i think you had a lake of Knowledge about C++

The World most of the companies like Ms , Hp, HCL using C++
for their entire developments.Still Most of the Operating
Systems,System drivers,games are developed in C++.
why?
because of it is fully portable,flexible and ex tenable.And
it most of the lib are platform independents like
SL,STL,OpenGL,OpenCV and etc...

I agree that one,C++ is more complected.

It is not suitable for child-woods.

Is This Answer Correct ?    15 Yes 8 No

what are the disadvantages of C++?..

Answer / linto john

one of the main reason is that it does not support encapsulation, as all the code should be within the class, but main function from where the execution starts is outside the class.
and one more reason is that it does not support garbage collection

Is This Answer Correct ?    3 Yes 1 No

what are the disadvantages of C++?..

Answer / prince0777@facebook.com

C++ lacks in System security because it creats .obj file which can be attacked by hacker .Most of the companies uses C and C++ for system programming because it is prone to attacks in application programming.
Others are :-
* does not provide efficient means for deallocation of memory (garbage collection)
* compilation of code is costly due to 2 reasons :-
1. OS vendor has to employ professionals who can make OS environment that supports C++ applications .
2. Authenciation is required by the vendor which is costly .

Is This Answer Correct ?    0 Yes 0 No

Post New Answer



More OOPS Interview Questions

Can destructor be overloaded?

0 Answers  


can we create and enter the data & hide files using programmes ?

2 Answers   Wipro,


what is virtual function?

3 Answers  


what is the difference between inter class and abstract class...?

0 Answers  


What is coupling in oop?

0 Answers  






What is the difference between pass by value,pass by pointer,pass by reference in the catch block in the exception handling in c++

1 Answers   TCS,


When not to use object oriented programming?

0 Answers  


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

0 Answers  


Why u change company?

12 Answers   BOB Technologies,


What is static in oop?

0 Answers  


Difference between realloc() and free?

9 Answers   HP,


In multilevel inheritance constructors will be executed from the .... class to ... class

2 Answers   TCS, ABCO,






Categories