Quote Originally Posted by Kaniaz View Post
Code:
void foo(int *bar)
{
bar=45;
}
[/b]
Wouldn't that be:
Code:
void foo(int *bar)
{
(*bar)=45;
}
so as to change the value of the int instead of changing the pointer's target?

I learned Hypercard first, then VB, then C++, and now I use Java. Hypercard isn't quite a programming language, but I count it because it's what got me interested. The great thing about Hypercard is that some of the commands are grammatically correct.