Quick question on arguments

I have a question that asks me why does the order of arguments matter? I have looked and looked but I can't seem to find it.

Any help would be great.
I'm not too up on my terminology, so I don't know the term "arguments"

but as far as order goes:

1
2
3
4
int num;
num = 0;
num++;
num = 3;


3


is different from

1
2
3
4
int num;
num = 0;
num = 3;
num++;


4


and

1
2
3
4
int num;
num = 3;
num++;
num = 0;


0


and

1
2
3
4
num = 3;
num++;
num = 0;
int num;


won't compile
Well I'm almost 100% sure that this would be a function with a argument insideFunctionName(this, is, an, argument)
Last edited on
Aw jank. Yeaahh. In that case, the order matters because thats the order you have to pass it through.

Function(int, char, string)

in this case, youll have trouble if you try passing through

Function(c, this is a string, 56)

Ah ok, thanks. I really appreciate it.
also

Function(int a, int b, int c)

if you pass through Function(3,6,8)

inside the function:
a = 3
b = 6
c = 8

because thats the order you passed it in
sure! np.
Topic archived. No new replies allowed.