Function with argument and with no return value in c

In C language, This type of function can accept argument but cannot return any value. These function argument can be of any valid c data type separated by comma.

Function Declaration Syntax

<return_type> <function_name>(parameter1, parameter2);

void keyword is used as return type of function which is not returning any value.

Function Definition Syntax

<return_type> <function_name>(parameter1, parameter2)
{
   // set of statements
}

Function call Syntax

<function_name>(parameter1, parameter2);

Example

#include<stdio.h>

//Function Declaration
void MultiplyNumbers(int, int);

void main()
{
   int a  = 5, b = 20,
   MultiplyNumbers(a,b); //Function call
 
// //Function Definition
void MultiplyNumbers(int a, int b)
{
   int c = 0;
   c =  a * b;
   printf("%d ", c);
}