How you create user-defined functions and explain the syntax?

A user-defined function has the following structure:
[class] function name ([mode] parameter...)
{
declarations;
statements;
}
b. The class of a function can be either static or public. A static function is available only to the test or module within which the function was defined.
c.
d. Parameters need not be explicitly declared. They can be of mode in, out, or inout. For all non-array parameters, the default mode is in. For array parameters, the default is inout. The significance of each of these parameter types is as follows:
in: A parameter that is assigned a value from outside the function.
out: A parameter that is assigned a value from inside the function.
inout: A parameter that can be assigned a value from outside or inside the function.

 

This Question is not yet answered!

 
 

Related Answered Questions

 

Related Open Questions