C Tutorial/Function/Function Definition

Материал из C\C++ эксперт
Перейти к: навигация, поиск

Syntax of function definition

The general format of a function is


<source lang="cpp"><Return type> <Function name> <Parameter list>{

    local definitions;
    statements;
    Return value;

}</source>