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
What is a razor file?
Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?
Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?
Which version of the common language runtime (clr) does the .net framework 3.0 use?
What is oauth in web api?
What are the levels at which filters can be applied in an asp.net mvc application?
What is the use of razor view engine?
What is needed for running an application built on winfx on the .net framework 3.0?
what is deferred loading(lazy loading)?
How we can call a javascript function on the change of a dropdown list in mvc?
Describe the roles of clr in .net framework.?
What is the difference between partial and renderpartial?
What are the two ways to add constraints to a route?
How route table has been created in asp.net mvc?
What is .net core framework?