Professional Documents
Culture Documents
Assiment 2
Assiment 2
1 FUNCTION
Branch:BCA
Section/Group:BCA3/-B
A function is a block of code written in a program to perform some specific task. We can relate
functions in programs to employees in a office in real life for a better understanding of how functions
work. Suppose the boss wants his employee to calculate the annual budget. So how will this process
complete? The employee will take information about the statics from the boss, performs calculations
and calculate the budget and shows the result to his boss. Functions works in a similar manner. They
take informations as parameter, executes a block of statements or perform operations on this
parameters and returns the result.
User-defined functions are functions that you use to organize your code in the body of a policy. Once
you define a function, you can call it in the same way as the built-in action and parser functions.
Variables that are passed to a function are passed by reference, rather than by value.
Building converts a package source directory into a single bundled file. If binary = FALSE this creates a
tar. gz package that can be installed on any platform, provided they have a full development
environment (although packages without source code can typically be in installed out of the box).
A mathematical function is a rule that gives value of a dependent variable that corresponds to specified
values of one or more independent variables. A function can be represented in several ways, such as by
a table, a formula, or a graph.
Most current programming languages include built-in or library functions to process strings. Common
examples include case conversion, comparison, concatenation, find, join, length, reverse, split, substring,
and trim. tolower() , toupper() , etc. ToLower() , ToUpper() , etc.
Array Functions in C is a type of data structure that holds multiple elements of the same data type. The
size of an array is fixed and the elements are collected in a sequential manner. There can be different
dimensions of arrays and C programming does not limit the number of dimensions in an Array.
What are time functions?
Returns the decimal number for a particular time. If the cell format was General before the function was
entered, the result is formatted as a date. The decimal number returned by TIME is a value ranging from
0 (zero) to 0.99988426, representing the times from 0:00:00 (12:00:00 AM) to 23:59:59
L* Mon-DD-YYYY Month abbreviation, Day with leading zeros, Year (Feb 17, 2009)
M* DD-Mon-YYYY Day with leading zeros, Month abbreviation, Year 17 Feb, 2009.