What is "out" parameter how it is used in methods?

Answer Posted / bhavnasweet04

Out Parameter: Used to pass a parameter as a reference so
that the function called will set the value. This could be
used to return more than 1 value by a function.
e.g.

public int AddMuliply( int a int b out int c)
{
c a*b;
return ( a+b);
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are Action Filters in ASP.NET MVC and its use?

555


Which version of the common language runtime (clr) does the .net framework 3.0 use?

565


What are Model Binders in ASP.Net MVC?

691


Is dapper better than entity framework?

533


How to Create an Intranet Site Using ASP.NET MVC?

591






Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).

1800


What is Layout in ASP.Net MVC?

576


The order of the filters that get executed, if the multiple filters are implemented?

615


What is stateless model?

510


Is mvc 4 supporting windows azure sdk (software development kit) ?

558


How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?

506


Explain something about model, view and controllers in asp.net mvc?

558


Possible ways to prevent xss attacks on mvc application?

572


What are the difference between asynchronous controller implementation between asp.net mvc 3 & asp.net mvc 4?

583


What operating systems will the .net framework 3.0 be available for?

568