_salibo

we are all busy cleaning our rooms for the REGIONAL SCHOOL PRESS CONFERENCE..


NO CLASSES!!! weeeeeeee!!! XD

Saturday, November 29, 2008

_SALIBO

this week we discussed about function call:

function call
- is an expression containing the function name followed by the function call operator. ().

Type of function call:

-The type of a function call expression is the return type of the function. This type can either be a complete type, a reference type, or the type void. A function call is an lvalue if and only if the type of the function is a reference.

Arguments and Parameters 


-A function argument is an expression that you use within the parentheses of a function call.

-A function parameter is an object or reference declared within the parentheses of a function declaration or definition. When you call a function, the arguments are evaluated, and each parameter is initialized with the value of the corresponding argument. The semantics of argument passing are identical to those of assignment.

-A function can change the values of its non-const parameters, but these changes have no effect on the argument unless the parameter is a reference type.

-When a function is defined, its parameters are listed in parentheses next to its name (there must be no spaces between its name and the open-parenthesis). If a function does not accept any parameters, leave the parentheses empty; for example: GetCurrentTimestamp().
ByRef Parameters: From the function's point of view, parameters are essentially the same as local variables unless they are defined as ByRef as in this example:
Swap(ByRef Left, ByRef Right)
{
temp := Left
Left := Right
Right := temp
}
-In the example above, the use of ByRef causes each parameter to become an alias for the variable passed in from the caller. In other words, the parameter and the caller's variable both refer to the same contents in memory. This allows the Swap function to alter the caller's variables by moving Left's contents into Right and vice versa.

-By contrast, if ByRef were not used in the example above, Left and Right would be copies of the caller's variables and thus the Swap function would have no external effect.

-Since return can send back only one value to a function's caller, ByRef can be used to send back extra results. This is achieved by having the caller pass in a variable (usually empty) in which the function stores a value.

Saturday, November 22, 2008

_SALIBO

we had an activity about our lessons..

Saturday, November 15, 2008

Learnings of the week SALIBO

Mr. Balbuena gave us some reporting about iterative statements to start our next grading period..

Friday, November 7, 2008

 
ziee ++ :] BLOG! - Wordpress Themes is proudly powered by WordPress and themed by Mukkamu Templates Novo Blogger