C - User define function example with no argument and no return type
Define a function with no argument and no return type in C language.
In the program, we have function named fun1 which has no argument and no return type (void is the return type - that means, function will not return anything).
Within the function fun1 we are declaring an array, calculating sum of its elements and printing the sum.
Program
Output
need an explanation for this answer? contact us directly to get an explanation for this answer