Variadic function: Difference between revisions

Content deleted Content added
No edit summary
Chip Zero (talk | contribs)
other uses template, mention java
Line 1:
NOTE: This article is about{{otheruse|this=variadic functions|use1=the cariadic function. For varargs.h library, go toin [[C]]|page1=varargs.h]]}}
 
In [[computer programming]], a '''variadic function''' is a [[function (programming)|function]] of variable [[arity]]; that is, one which can take different numbers of arguments. Support for variadic functions differs widely among [[programming language]]s.
Line 28:
}
 
TheOther languages, such as [[C#]] languageand uses[[Java]] use a different approach - they just allow that a variable number of arguments of the same type may be passed to a variadic function. Inside the functionmethod they are simply collected in an [[array]].
 
==See also==