Original Post
hi,
just a quick question
A function returns something right? like:
int add(int a, int b)
{
int c;
c=a+b;
return c;
}
and a proceedure passes back via the parameters? and would use void at the start? but to pass back via the parameters, we would have to use references or pointers, because otherwise we create a local copy and the change isnt sent back.
So what is the difference between a method, procedure, and sub-routine? are they all the same thing?
Can someone just clear up my misunderstanding.
thanks