Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
How you create user-defined functions and explain the syntax?
[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