搜尋此網誌

2025年3月26日星期三

Sth about Function

In C++,  void is a special return type used in functions that do not return a value. When a function is declared with a void return type, it means the function performs an action but does not give back any data to the caller.

A parameter is a variable defined in a function's declaration or definition. It acts as a placeholder that specifies what type and how many inputs a function expects. Parameters exist only within the scope of the function.

An argument is the actual value or expression provided to a function when it is called. Arguments are passed to the function and used in place of the corresponding parameters.

Microsoft Copilot

沒有留言:

發佈留言