⚡
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 Calls

A function call is an expression that passes control and arguments (if any) to a function.

Syntax

function-call: identifier ( argument-list )

argument-list: number identifier function-call

Example

int a = 0;
add(3, a);
add(add(-1, 3), 7);
PreviousFunction Prototypes

Last updated 2 years ago