2 Functions are prototyped, defined and called: print_always_7() which is a function used for its side-effects and sum() which is a pure function(used for the return value)
Showing posts with label assignment. Show all posts
Showing posts with label assignment. Show all posts
Friday, 29 April 2011
Saturday, 9 April 2011
If statement
The if statement serves for bifurcating the execution of the instructions within the program.
if the condition of the if statement results in a boolean true(non-zero), the if code block executes, otherwise(boolean false, AKA zero) it does not.
We build and run the program several times, in each occasion modifying the resulting if conditional expression, so as to check how the program behaves with different conditions.
if the condition of the if statement results in a boolean true(non-zero), the if code block executes, otherwise(boolean false, AKA zero) it does not.
We build and run the program several times, in each occasion modifying the resulting if conditional expression, so as to check how the program behaves with different conditions.
Subscribe to:
Posts (Atom)