user-defined function
A user-defined function in C is a function that is created by the programmer to perform a specific task.
user-defined functions allow the programmer to define their own functionality
Syntax:-
return_type function_name(parameters)
// function body
return_type: The type of value the function will return (e.g., int, float, char, etc.). If the function
doesn't return any value, the return type is void.
function_name: The name of the function, which is used to call it.
parameters: A list of variables that the function takes as input (optional). If the function doesn't
take any input, you can leave it empty or use void.
function body: The code block that defines what the function does.
Note…..Jo function hum banate banate hai apne man se nam dete hai usko user defined
function bolte hai….
Jaise rectangle ke liye hum void Rect()
Addition ke liye void add()