30.09.2016, 21:27
For example you call this maxi(1,2,3)
numargs() will count the arguments you pass..in that case..they are 3..numarg() = 3
maxi() if you would call this, numarg() = 0
so and getarg(0) gets the first argument you pass..in that case...1..so:
getarg(0) = 1
getarg(1) = 2
getarg(2) = 3
aaand thats it
numargs() will count the arguments you pass..in that case..they are 3..numarg() = 3
maxi() if you would call this, numarg() = 0
so and getarg(0) gets the first argument you pass..in that case...1..so:
getarg(0) = 1
getarg(1) = 2
getarg(2) = 3
aaand thats it