answersLogoWhite

0

When we write code we generally use and write generic routines that can be executed upon any machine. We are not overly concerned with the hardware we are targetting, because abstraction takes care of the machine specifics for us. Thus we can concentrate on writing code specific to the user, rather than worry about the underlying architecture. However, while C++ allows us to use generic and highly abstract interfaces (the standard library is a prime example), it also allows us to use mid-level C-style code, as well as low-level, inline assembly, should we require it. When we use inline assembly we are working at the physical level and coding specifically to the machine, just as if we were writing the code in pure assembler. At this level there is no abstraction whatsoever, other than that provided by the symbolic language itself, and our code will only work on the specific architecture we are targetting. While this allows us to exploit the hardware to the fullest, there are relatively few cases where this is actually necessary. Both C and C++ were specifically designed to produce the machine-specific code for us, and are both capable of optimising that code in order to exploit the underlying hardware's features (that is one of the roles of the compiler). So while we can use C++ to write machine-specific code when we need it, most of the time we will make use of abstraction and generic code that can be run on any machine, and make use of compiler directives to filter any machine-specific code, and only use inline assembly when it is absolutely necessary to do so.

User Avatar

Wiki User

11y ago

What else can I help you with?

Continue Learning about Engineering

Where can you practice c plus plus is there a website that can be useful?

C Plus Plus, or C++ is an intermediate-level computer programming language. It was developed by Bjarne Stroustrup starting in 1979. You can practice C Plus Plus at a site such as Cprogramming.


Is it necessary to know C or C plus plus to learn matlab?

No. Both C and C++ are low- to mid-level languages while MATLAB is a high-level language. The level determines the amount of abstraction involved, and the higher the amount of abstraction, the easier a language is to use. Knowledge of another language is never a bad thing though. The more languages you are familiar with, the more easily you can determine which language is best suited to a particular solution.


Can you declare a method within a method in c or c plus plus?

C: there are no methods in C. C++: no.


What is physical object in c plus plus?

A physical object is a real-world entity -- one you can physically sense either by seeing it, touching it, smelling it, hearing it or tasting it. By contrast, a virtual object is one we can only imagine. In object-oriented programming languages such as C++, all objects are virtual entities that can be used to represent a physical entity or an imagined entity, or a combination of both, either in whole or in part.


It has been said that C plus plus sits at the center of the modern programming universe Explain this statement?

It means that the vast majority of programs are written in C++, because of its high performance (comparable to that of low-level assembler) and low maintenance (comparable to that of high-level Java). Although C++ is a high level language itself, it borrows much from C which is a mid-level language, whereby the source code instructions map closely to the resultant machine code, and therefore has a much reduced level of abstraction. However, C++ also allows object-oriented programming, which allows more highly complex, scalable structures to be modelled much more easily than with C alone.

Related Questions

Is C plus plus a high level language?

Yes, C++ is a high-level language.


Is C plus plus high level language?

Yes, it is.


Which level language is c plus plus?

3rd Generation or 3G


Why c plus plus is not a middle level language?

C++ is a high-level language with low-level features, including memory pointer variables, therefore it is an intermediate-level language. In other words, it is a middle-level language. It cannot be regarded in any other way, because it is not as low-level as assembler, but it is as low-level as C, and can also be as high-level as Java.


Where can you practice c plus plus is there a website that can be useful?

C Plus Plus, or C++ is an intermediate-level computer programming language. It was developed by Bjarne Stroustrup starting in 1979. You can practice C Plus Plus at a site such as Cprogramming.


Which is higher in graded c or c plus?

Ofcourse higher graded is C++ between C and C++ because C++ is advance level of C, it is derived from C language.


What is b plus b plus b plus c plus c plus c plus c?

b+b+b+c+c+c+c =3b+4c


What is c plus c plus 2c plus c plus c equal?

c + c + 2c + c + c = 6c


B plus b plus b plus c plus c plus c plus c equals?

b + b + b + c + c + c + c = 3b + 4c


Symplify c plus c plus c plus c?

4c


What is programming languages in c plus plus?

Programming in C++ means designing and writing a computer program using the C++ programming language. C++ is a high-level, machine-independent language which must be converted into machine-dependent code by a compiler.


What is c plus c plus c plus c plus c?

c + c + c + c + c = 5 * c.