why c++ is a highlevel language
Answers were Sorted based on User's Feedback
Answer / vivek kumar kanojia
C++ is the high level language because
1.It uses OOP
2.syntax and semantics are easy to understand
3.It is used to solve real world problems
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / siva
C++ programs are compiled by using compiler
Compiler converts high lever programs into low level.
There are two parts in compiler
High level -> assembly
Assembly -> machine level
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / juzer
c or c++ is a middle-level language. This is because
it combines the best elements of high-level languages with
the control and flexibility of assembly language.
| Is This Answer Correct ? | 1 Yes | 0 No |
Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation
what is meant by files?
Why we use classes in oop?
What is the example of polymorphism?
how to get the oracle certification? send me the answer
what is a binary overloading
What are the benefits of oop?
write a function that takes an integer array as an input and finds the largest number in the array. You can not sort array or use any API or searching needs?
2 Answers IBMS, Zycus Infotech,
What does it mean when someone says I oop?
what is difference between String s=new String("vali"); String s="vali"
When is an object created and what is its lifetime?
What is the importance of oop?