What is "out" parameter how it is used in methods?
Answer Posted / 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 |
Post New Answer View All Answers
What is rxjava used for?
What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?
What is the difference between tempdata and viewbag?
What are the main components of .net framework?
Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?
what is lazy loading in entity framework?
What is MVVM design pattern?
Explain Model, view and Controllers in Asp.Net MVC?
Can I uninstall microsoft .net framework?
Does Tempdata hold the data for other request in ASP.Net MVC?
When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?
What are Action Methods in ASP.NET MVC?
How we can add the CSS in ASP.Net MVC?
what do you mean by table-per-hierarchy?
How the ‘page lifecycle’ of ASP.Net MVC does works?