functions and procedures (1 Viewer)

sikeveo

back after sem2
Joined
Feb 22, 2004
Messages
1,794
Location
North Shore
Gender
Male
HSC
2005
Whats the diff? Cos if they ask something like this in the exam, im screwed because, all i know is that:

Functions return a value by setting the value its self, whereas procedures return the value through parameters.

So any help would be grealty appreciated.
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
You are pretty much right. Functions return values, procedures just execute a task - they don't return values.
 
Joined
Nov 4, 2004
Messages
3,550
Location
Sydney
Gender
Male
HSC
2005
thats probably it if they dont ask what they did in CSSA 2003 paper (5 marks on functions)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top