⚡
CLight
CtrlK
  • Getting started with CLight
  • Cheat Sheet
  • Reference
    • EBNF Grammar
    • Program Structure
    • Declarations and Types
    • Expressions and Assignments
      • Expressions
      • Assignement Operators
      • Binary Operators
      • Unary Operators
    • Statements
      • Expression Statements
      • Conditional Statements
      • Iterative Statements
    • Functions
      • Function Definitions
      • Function Prototypes
      • Function Calls
Powered by GitBook
On this page
  • Syntax
  • Example
  1. Reference
  2. Functions

Function Prototypes

A function prototype precedes the function definition and specifies the name, return type and a function's arguments.

Syntax

function-prototype: type-specifier declarator ;

Example

int add(int a, int b);
void test();
PreviousFunction DefinitionsNextFunction Calls

Last updated 2 years ago