Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.48 KB

function-call-c.md

File metadata and controls

27 lines (19 loc) · 1.48 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Function Call (C)
Function Call (C)
11/04/2016
function calls, C functions
functions [C], calling
function calls
35c66719-3f15-4d3b-97da-4e19dc97b308

Function Call (C)

A function call is an expression that includes the name of the function being called or the value of a function pointer and, optionally, the arguments being passed to the function.

Syntax

postfix-expression:
postfix-expression ( argument-expression-listopt )

argument-expression-list:
assignment-expression
argument-expression-list , assignment-expression

The postfix-expression must evaluate to a function address (for example, a function identifier or the value of a function pointer), and argument-expression-list is a list of expressions (separated by commas) whose values (the "arguments") are passed to the function. The argument-expression-list argument can be empty.

A function-call expression has the value and type of the function's return value. A function can't return an object of array type. If the function's return type is void (that is, the function has been declared never to return a value), the function-call expression also has void type. For more information, see Function Calls.

See also

Function Call Operator: ()