close-red

ECO403 - Macroeconomics

Question(s) similar to the following:

Differentiate between C and c++.

Question 1: Differentiate between C and c++.

Answer: Suggest Edit

1. C was the C++ predecessor. As it's name implies, alot of C remains in C++. Although not actually being more powerful than C.

2. C++ allows the programmer to more easily manage and operate with Objects, using an OOP (Object Oriented Programming) concept

3. C++ allows the programmer to create classes, which are somewhat similar to C structures. However, to a class can be assigned methods, functions associated to it, of various prototypes, which can access and operate within the class, somewhat like C functions often operate on a supplied handler pointer.

4. Although it is possible to implement anything which C++ could implement in C, C++ aids to standardize a way in which objects are created and managed, whereas the C programmer who implements the same system has a lot of liberty on how to actually implement the internals, and style among programmers will vary a lot on the design choices made

5. In C, some will prefer the handler-type, where a main function initializes a handler, and that handler can be supplied to other functions of the library as an object to operate on/through. Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++.

C++ applications are generally slower at runtime, and are much slower to compile than C programs.

The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always

commonly used even if C++ has alot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then).


Similar Questions:

Question 2: Differentiate between C and c++.

Answer: Suggest Edit

1. C was the C++ predecessor. As it's name implies, alot of C remains in C++. Although not actually being more powerful than C.

2. C++ allows the programmer to more easily manage and operate with Objects, using an OOP (Object Oriented Programming) concept

3. C++ allows the programmer to create classes, which are somewhat similar to C structures. However, to a class can be assigned methods, functions associated to it, of various prototypes, which can access and operate within the class, somewhat like C functions often operate on a supplied handler pointer.

4. Although it is possible to implement anything which C++ could implement in C, C++ aids to standardize a way in which objects are created and managed, whereas the C programmer who implements the same system has a lot of liberty on how to actually implement the internals, and style among programmers will vary a lot on the design choices made

5. In C, some will prefer the handler-type, where a main function initializes a handler, and that handler can be supplied to other functions of the library as an object to operate on/through. Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++.

C++ applications are generally slower at runtime, and are much slower to compile than C programs.

The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always

commonly used even if C++ has alot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then).

Past Papers of ECO403 - Macroeconomics
Sponsored

Attach VULMS for better learning experience!
Attach VULMS Account

Our VULMS adds features of MDBs and lets your populate VU subjects automatically.

Tajweed Classes (Learn Quran with Tajweed)
Learn Holy Quran with Tajweed

Try our 3 days free demo now! Online online holy quran tajweed classes are useful to learn reading holy quran with tajweed.

Gegasoft POS/CRM Software
Gegasoft Point of Sale/Customer Relationship Managemnet Software

Gegasoft Point of Sale/Customer Relationship Management software is an accounting software to fulfill your business needs.

Sponsored

?