Device Monitoring Studio - Monitor, log and analyze data coming through PC ports and connections
Download Device Monitoring Studio Hide this button

() Function Call Operator

Function call operator allows you to call an internal or external function.

Syntax:

id( [param-list] )
param-list: expr [,expr ,[…] ]

The following code fragment illustrates the use of the function call operator:

struct A
{
    int Array1[int(10.2)];         // Call an internal cast function
    int Array2[ExternalFunction()];  // Call an external function with no parameters
};    

External function calls are never optimized at compile-time. All expressions containing external function calls will be computed at run-time.