what is output parameter and parameter array?

Answer Posted / shadab

An output parameter is a mechanism to pass value as
reference.It is like a reference type parameter but one
differece in reference type and output type is
the variable that is passed as output parameter exists only
one copy in memory.
In case of output parameter variable can be
used without initializing i.e local varible can be used
without initializing.
output mechanism is also called out because value
is transfered outside the method.


And parameter array is a way to pass array as parameter


for more details->
Go to url -> www.shadab-programminghelp.blogspot.com

for details and to see code visit above mentioned url.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the different stages of a thread?

664


Is c# and c same?

661


Which .gang of four. Design pattern is shown below?

653


Can a struct inherit from an interface in c#?

720


How can you write a class to restrict that only one object of this class can be created (Singleton class)?

711


What are generic types?

684


Give an example of a ctype.

735


What is delegates in c# and uses of delegates?

637


What is thread pooling?

714


How can you force derived classes to provide new method implementations for virtual methods?

670


What does exclamation mark mean c#?

736


Why do we use class in c#?

678


What is a thread? What is multithreading?

697


What is the major difference between a custom control and user control?

760


What is the difference between out and ref in c#?

660