Wednesday, 28 October 2009

Arrays, Modularisation and Variable Types

Today we discussed and hopefully blimmin well understood ...

Arrays are used to store lists - more than one variable for the same thing required badabingbadaboom array

Single - 1.334534, 3.45654, -23432.345435 Real Numbers
Integer - 1,2,3, -10, 100, -1000
String - "ML4 3P3"

Paramater Passing - ByVal - sends a copy of the value, doesn't alter original. We use this when we don't want to change the variable (creates a local copy)
ByRef - sends the address location in memory which allows you to edit the actual copy

No comments:

Post a Comment