Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / bharani

A out parameter is a parameter option to pass value to the
calling function. If a function needs to return multiple
values to the calling function the it is best to use out
parameter whereas return parameter can be used for
returning only one value.

An out parameter should be marked with an out keyword, and
the parameter should be initialized inside the function.

Is This Answer Correct ?    11 Yes 0 No

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

Answer / somnath nanekar

if we want something from that method/procedure to return
then use out parameter
1st we call that method with out parameter. then give some
value to that out parameter in procedure and then use that
value...
so to get the required value we use out parameter

Is This Answer Correct ?    11 Yes 3 No

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

Answer / sendhil vel

methods cannot have out parameters only parameters with ref
or value can be passed to method/function

When we talk about procedures in Sql server we can have out
parameters. They are mainly used when you want to return
multiple values and non numeric values from the sql
procedures

They are usefull when you are calling a procedure from
another procedure and need some specfic values

Is This Answer Correct ?    1 Yes 0 No

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

Answer / 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

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

Answer / sai ranganath

out parameter option to pass value to the
calling function. for array it can used in a flexible way...
out can be used as calling function in methods

Is This Answer Correct ?    2 Yes 2 No

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

Answer / sujata

we get the value the value.

Is This Answer Correct ?    5 Yes 7 No

Post New Answer

More Dot Net Framework Interview Questions

Have you designed any components?

2 Answers   HP,


What is .net framework & its benefits?

0 Answers  


Will there be a .net compact framework 3.0 release with release of .net framework 3.0?

0 Answers  


How we can handle the exception at controller level in ASP.Net MVC?

0 Answers  


What is the meaning of unobtrusive javascript? Explain us by any practical example.

0 Answers  


Is .net framework backwards compatible?

0 Answers  


What are the components required to create a route in mvc?

0 Answers  


Tell me the best web-sites for Learning the ASP DOT NET.

3 Answers  


what is Thread Priority?

2 Answers  


What does CLR do after the IL is generated and machine language is generated .Will it look for main method ?

1 Answers   BWT, MMTS, UIU,


Can we look at the IL for an assembly?

2 Answers  


what is mean by type-safe? Please answer me. Advance thanks.

0 Answers   Excel,


Categories