answersLogoWhite

0


Best Answer

The purpose of C++ is to produce machine code programs from a text-based source. While much of what you can do in C++ you can also do in C, the addition of object-oriented programming (OOP) in C++ makes it possible to model highly complex structures more easily than with C alone. OOP adds a much greater degree of abstraction but C++ still retains the low-level features of C, allowing programmers the freedom to use the tools that best suit the task at hand. While modern OOP languages such as Java are ideally suited to rapid-application development, they simply cannot compete with C++ in terms of efficiency and performance. Hence all major software developments, particularly operating systems, drivers, games and office applications are still programmed in C++ to this day.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

.h files are header files. These files allow programmers to separate certain elements of a program's source code into reusable files. Header files commonly contain forward declarations of classes, subroutines, variables, and other identifiers. Programmers who wish to declare standardized identifiers in more than one source file can place such identifiers in a single header file, which other code can then include whenever the header contents are required. This is to keep the interface in the header separate from the implementation.

In C++ the standard functions are stored in header files.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Very simply, a function performs some type of action, whether 'internal', or visible to the user.

For example, a function could manipulate data in a file, or print text or graphics to the screen, or accept user input from an input device.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the purpose of a function in C plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the building function in c plus plus?

There is no such term as "building function" in C++.


Can a function be called from more than one place in a program in c plus plus?

In C and C++, as well as in many (all?) languages, a function can be called from more than one place in a program. That's the purpose of functions - to encapsulate pieces of code that are needed in more than one place in the program.


A c plus plus statement that invokes a function is known as?

...a function call.


What is the purpose of C plus plus?

Computer programming.


When will you make a function inline in c plus plus?

yes,we can make function inline


What is the only function all C plus plus programs must contain?

Every C plus plus program that is a main program must have the function 'main'.


In C plus plus when a function is executing what happens when the end of the function is reached?

Control is returning to the caller of the function.


What do you call an object function in c plus plus?

method


What is a main function in c plus plus?

It is the first function that gets called when the program is executed.


What are the basics of main function in c and c plus plus?

The main function is the entry point of your application. Its primary purpose is to process command-line switches (if any) and to invoke the appropriate functions. For trivial applications the main function may be the only function, however separating blocks of code into re-usable functions make code much easier to read.


What is the function y equals ax2 plus bx plus c?

It is a quadratic function which represents a parabola.


How do you create folder with c plus plus?

Use function mkdir.