#Mastery11 Calling C++ Functions

We write functions to define specific tasks that could be used at many points in a program. 

A function is invoked (made to perform its designated task) by a FUNCTION CALL

The function call specifies the function name and provides information (as arguments) that the called function need to do its job. 

Math library functions allow the programmer to perform certain common mathematical calculations.

Functions normally are called by writing the name of the function, followed by a left parenthesis, followed by the argument (or a cooma-separated list of arguments) of the function, followed by a right parenthesis, as shown in the red circle. To see the complete program (WSQ08) you can check it on my Github account: https://github.com/Auralgo/-TC1017/blob/master/wsq08.cpp

 

From: “C++ How to program” by Deitel.

CC BY 4.0 #Mastery11 Calling C++ Functions by Aurora Alvarado is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.