C++ question: A function ______ outlines the instructions the function will carry out when executed. Conversely, a function ______ actually triggers the function to begin executing. Typically, we also put a function ______ above main so the compiler won't complain the first time it sees the function's name used.
1. Function Defination
Reason : A function Defination is the thing which contains the actual body of the function and instructions in the form of statements which tells what operations function should perform. The function execution will be according to the function Defination only.
2. Function Call
Reason : function call will awake the particular function and begins its execution. Until and unless you call a function it will not execute. Therefore the function call triggers the function to begin the execution.
3. Function declaration
Reason : you can also declare the function above the main function which will be easier and the compiler will not give any error by seeing the functions name because it will be already declared above.
Get Answers For Free
Most questions answered within 1 hours.