Home > Article > Backend Development > What does fun(a,b) mean in C language
fun(a, b) is the syntax for calling a function in C language, where fun is the function name and a and b are parameters. The syntax for calling a function is fun_name(argument_1, argument_2, ...), for example add(a, b) calls the add() function and passes parameters a and b.
The meaning of fun(a, b) in C language
fun(a, b) is C The syntax for calling functions in the language, where:
How to call a function
To call a function, use the following syntax:
<code class="c">fun_name(argument_1, argument_2, ...);</code>
Where:
Example
For example, the following code calls a function named add() and passes it two parametersa and b:
<code class="c">int a = 5; int b = 10; int result = add(a, b);</code>
In the above example:
The above is the detailed content of What does fun(a,b) mean in C language. For more information, please follow other related articles on the PHP Chinese website!