getarg, setarg and numarg
#4

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
Reply


Messages In This Thread
getarg, setarg and numarg - by NeXoR - 30.09.2016, 21:12
Re: getarg, setarg and numarg - by Kaliber - 30.09.2016, 21:23
Re: getarg, setarg and numarg - by NeXoR - 30.09.2016, 21:25
Re: getarg, setarg and numarg - by Kaliber - 30.09.2016, 21:27
Re: getarg, setarg and numarg - by NeXoR - 30.09.2016, 21:30
Re: getarg, setarg and numarg - by Kaliber - 30.09.2016, 21:34
Re: getarg, setarg and numarg - by NeXoR - 30.09.2016, 21:37
Re: getarg, setarg and numarg - by SickAttack - 30.09.2016, 22:13
Re: getarg, setarg and numarg - by GoldenLion - 30.09.2016, 22:14
Re: getarg, setarg and numarg - by SickAttack - 30.09.2016, 22:15

Forum Jump:


Users browsing this thread: 2 Guest(s)