Home » Learn C++ » C++ Built-In Function

C++ Built-In Function

C++ Built-In Function:

The functions that have already been defined and are part of the language and can be used in any program are called built-in functions.

Accessing Built-in Functions:

The built-in functions are accessed through header files. Each built-in function is defined in its related header file. If a built-in function is to he used in a program, its header tiles must be included in the program.

For example, “clrscr” function is defined in “conio.h” header file. If this function is to be used in a program, the “conio.h” header file must be included in the program. Similarly, commonly used mathematical functions are defined in the “math.h” header tile and when a mathematical function is to he used, “math.h” file is included in the program.

Arguments of Functions:

To perform an operation, a function may require data. It performs operations on the data and produces result. The data that is passed to a function is called argument(s) of the function. The arguments of a function may he of different types. These may be int, float, string, double, etc. Some functions may need more than one parameters separated by commas. Some functions need no parameter.

Similarly some built-in functions also return a single value to the calling program after executing all its statements. The returned value may be stored in a variable or directly sent to the output device.

Other Topics

comment closed

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
Copyright © 2010 Information Village. All rights reserved.